Changeset 248
- Timestamp:
- 08/03/2010 02:26:36 PM (13 years ago)
- Location:
- SHX/trunk/src/SeismicHandler
- Files:
-
- 1 deleted
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/src/SeismicHandler/commands/echo_ch.py
r247 r248 90 90 echo_ch("test2") 91 91 # echo_ch() 92 from SeismicHandler. modules.parser import parse92 from SeismicHandler.core.modules.parser import parse 93 93 echo_ch(**(parse("echo_ch test2/new").parsed)) -
SHX/trunk/src/SeismicHandler/commands/sdef.py
r247 r248 27 27 This command deals with the local and/or global symbol set. This is defined 28 28 a parser level, for doctest is has to done manually. 29 >>> from SeismicHandler.core. parser import symbol29 >>> from SeismicHandler.core.modules.parser import symbol 30 30 >>> s = symbol() 31 31 -
SHX/trunk/src/SeismicHandler/commands/sdel.py
r247 r248 26 26 This command deals with the local and/or global symbol set. This is defined 27 27 a parser level, for doctest is has to done manually. 28 >>> from SeismicHandler.core. parser import symbol28 >>> from SeismicHandler.core.modules.parser import symbol 29 29 >>> s = symbol() 30 30 >>> s.foo = 1 -
SHX/trunk/src/SeismicHandler/core/__init__.py
r247 r248 20 20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 21 21 22 #print "it's __init__ from core" 23 24 from SeismicHandler.core.modules.traces import traces as t 22 from SeismicHandler.core.modules.traces import Traces 25 23 from SeismicHandler.core.modules.history import History as history 26 #from SeismicHandler.core.basic import codes24 from SeismicHandler.core.basic import codes 27 25 from SeismicHandler.core.modules.log import Logging 28 26 from SeismicHandler.core.modules.runtime import runtime 29 27 28 # runtime configuration 30 29 Settings = runtime() 31 30 Globals = Settings.Globals 32 #Traces = t.visible 33 #Hidden = t.hidden 31 32 # trace access 33 t = Traces() 34 Traces = t.visible 35 Hidden = t.hidden -
SHX/trunk/src/SeismicHandler/core/modules/traces.py
r247 r248 27 27 28 28 class Traces(object): 29 pass 30 # """ 31 # 32 # """ 33 # traces = None 34 # hidden = None 35 # 36 # def __new__(cls): 37 # """ 38 # Ensure that there's only one instance of the traces class. 39 # 40 # Technically this is a singleton. 41 # """ 42 # 43 # if not '__instance' in cls.__dict__: 44 # cls.__instance = object.__new__(cls) 45 # 46 # return cls.__instance 47 # 48 # def __init__(self, *args, **kwargs): 49 # """Documentation""" 50 # self.traces = s.Stream() 51 # self.hidden = s.Stream() 29 """ 52 30 53 traces = Traces() 31 """ 32 visible = None 33 hidden = None 34 35 def __new__(cls): 36 """ 37 Ensure that there's only one instance of the traces class. 38 39 Technically this is a singleton. 40 """ 41 42 if not '__instance' in cls.__dict__: 43 cls.__instance = object.__new__(cls) 44 45 return cls.__instance 46 47 def __init__(self, *args, **kwargs): 48 """Documentation""" 49 self.visible = Stream() 50 self.hidden = Stream() 51 54 52 if __name__ == "__main__": 55 53 pass -
SHX/trunk/src/SeismicHandler/tests/test_parser.py
r247 r248 57 57 data = "\n".join(self.addEchoChannel(data.splitlines())) 58 58 59 from SeismicHandler. modules import parser59 from SeismicHandler.core.modules import parser 60 60 61 61 s = parser.symbol() … … 241 241 """ 242 242 243 from SeismicHandler. modules.parser import script, symbol243 from SeismicHandler.core.modules.parser import script, symbol 244 244 245 245 s = symbol() … … 268 268 self.fail("Cannot open test data file.") 269 269 270 from SeismicHandler. modules.parser import script, symbol270 from SeismicHandler.core.modules.parser import script, symbol 271 271 272 272 s = symbol()
Note: See TracChangeset
for help on using the changeset viewer.