Changeset 1560 for trunk/python/__init__.py
- Timestamp:
- 03/31/09 12:13:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1558 r1560 107 107 'plotter.histogram' : [False, _validate_bool], 108 108 'plotter.papertype' : ['A4', str], 109 'plotter. xaxisformatting' : ['asap', str],109 'plotter.axesformatting' : ['mpl', str], 110 110 111 111 # scantable … … 144 144 plotter.panelling : scan 145 145 146 # push panels together, to share axis labels146 # push panels together, to share axis labels 147 147 plotter.ganged : True 148 148 … … 162 162 163 163 # The formatting style of the xaxis 164 plotter. xaxisformatting : 'asap' or 'mpl'164 plotter.axesformatting : 'mpl' (default) or 'asap' (for old versions of matplotlib) 165 165 166 166 # scantable … … 188 188 # This is has to be a regular expression 189 189 scantable.reference : .*(e|w|_R)$ 190 190 191 # Fitter 191 192 """ … … 389 390 390 391 __date__ = '$Date$'.split()[1] 391 __version__ = '$Revision :$'392 __version__ = '$Revision$' 392 393 393 394 def is_ipython(): … … 396 397 def version(): print "ASAP %s(%s)"% (__version__, __date__) 397 398 398 def list_scans(t = scantable): 399 import types 400 globs = sys.modules['__main__'].__dict__.iteritems() 401 print "The user created scantables are:" 402 sts = map(lambda x: x[0], filter(lambda x: isinstance(x[1], t), globs)) 403 print filter(lambda x: not x.startswith('_'), sts) 404 return 399 def list_scans(t = scantable): 400 import inspect 401 print "The user created scantables are: ", 402 globs=inspect.currentframe().f_back.f_locals.copy() 403 out = [ k for k,v in globs.iteritems() \ 404 if isinstance(v, scantable) and not k.startswith("_") ] 405 print out 406 return out 405 407 406 408 def commands(): … … 472 474 mx_quotient - Form a quotient using MX data (off beams) 473 475 scale, *, / - return a scan scaled by a given factor 474 add, +, - - return a scan with given value added 476 add, + - return a scan with given value added 477 sub, - - return a scan with given value subtracted 475 478 bin - return a scan with binned channels 476 479 resample - return a scan with resampled channels … … 579 582 axhline,axvline - draw horizontal/vertical lines 580 583 axhspan,axvspan - draw horizontal/vertical regions 584 annotate - draw an arrow with label 585 create_mask - create a scnatble mask interactively 581 586 582 587 xyplotter - matplotlib/pylab plotting functions … … 592 597 commands - this command 593 598 print - print details about a variable 594 list_scans - list all scantables created b tthe user599 list_scans - list all scantables created by the user 595 600 list_files - list all files readable by asap (default rpf) 596 601 del - delete the given variable from memory
Note: See TracChangeset
for help on using the changeset viewer.