Changeset 442
- Timestamp:
- 08/25/2011 06:11:35 PM (11 years ago)
- Location:
- SHX/trunk/SeismicHandler
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/SeismicHandler/commands/echo_ch.py
r296 r442 90 90 echo_ch("test2") 91 91 # echo_ch() 92 from SeismicHandler.modules.parse import parse93 echo_ch(**( parse("echo_ch test2/new").parsed))92 from SeismicHandler.modules.parse import Parse 93 echo_ch(**(Parse("echo_ch test2/new").parsed)) -
SHX/trunk/SeismicHandler/commands/reads.py
r294 r442 17 17 18 18 from SeismicHandler.basics.command import BaseCommand 19 from obspy.core import read20 19 21 20 provides = {"reads": "reads"} -
SHX/trunk/SeismicHandler/commands/sdef.py
r296 r442 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.modules.parse import symbol29 >>> s = symbol()28 >>> from SeismicHandler.modules.parse import Symbol 29 >>> s = Symbol() 30 30 31 31 Define a local symbol: … … 51 51 If we initialize another symbol set, the globally defined symbols should 52 52 be still there: 53 >>> s1 = symbol()53 >>> s1 = Symbol() 54 54 >>> s1.bar 55 55 3 -
SHX/trunk/SeismicHandler/commands/sdel.py
r296 r442 25 25 This command deals with the local and/or global symbol set. This is defined 26 26 a parser level, for doctest is has to done manually. 27 >>> from SeismicHandler.modules.parse import symbol28 >>> s = symbol()27 >>> from SeismicHandler.modules.parse import Symbol 28 >>> s = Symbol() 29 29 >>> s.foo = 1 30 30 >>> s.setGlobal("bar", 2) … … 36 36 Traceback (most recent call last): 37 37 ... 38 Exception: Symbol FOOnot found!38 ShxError: Symbol 'FOO' not found! 39 39 40 40 Explicit deleting of a global symbol needs a qualifier. If no local symbol … … 47 47 If we initialize another symbol set, the globally defined symbol should 48 48 be gone: 49 >>> s1 = symbol()49 >>> s1 = Symbol() 50 50 >>> s1.bar #doctest: +ELLIPSIS 51 51 Traceback (most recent call last): 52 52 ... 53 Exception: Symbol BARnot found!53 ShxError: Symbol 'BAR' not found! 54 54 55 55 -
SHX/trunk/SeismicHandler/modules/parse.py
r441 r442 246 246 self.parameters = parameters 247 247 248 self.searchpath = ["."] 248 249 if "searchpath" in kwargs: 249 self.searchpath = kwargs["searchpath"]250 self.searchpath += kwargs["searchpath"] 250 251 else: 251 # XXX use defaultsearch path from configuration252 self.searchpath = [""]252 # use search path from configuration 253 self.searchpath += Settings.config.paths.scripts 253 254 254 255 try:
Note: See TracChangeset
for help on using the changeset viewer.