Changeset 1422 for trunk/python
- Timestamp:
- 05/22/08 16:38:44 (17 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1408 r1422 105 105 'scantable.freqframe' : ['LSRK', str], #default frequency frame 106 106 'scantable.verbosesummary' : [False, _validate_bool], 107 'scantable.storage' : ['memory', str] 107 'scantable.storage' : ['memory', str], 108 'scantable.history' : [True, _validate_bool] 108 109 # fitter 109 110 } … … 154 155 # default storage of scantable ('memory'/'disk') 155 156 scantable.storage : memory 157 158 # write history of each call to scantable 159 scantable.history : True 160 156 161 # default ouput format when saving 157 162 scantable.save : ASAP 163 158 164 # auto averaging on read 159 165 scantable.autoaverage : True … … 242 248 for k,v in kwargs.items(): 243 249 name = aliases.get(k) or k 244 key = '%s.%s' % (group, name) 250 if len(group): 251 key = '%s.%s' % (group, name) 252 else: 253 key = name 245 254 if not rcParams.has_key(key): 246 255 raise KeyError('Unrecognized key "%s" for group "%s" and name "%s"' % (key, group, name)) … … 351 360 if rcParams['useplotter']: 352 361 try: 353 from asapplotter import asapplotter 354 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 355 if gui: 362 from asapplotter import asapplotter 363 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 364 if gui: 365 import matplotlib 366 matplotlib.use("TkAgg") 356 367 import pylab 357 368 xyplotter = pylab 358 369 plotter = asapplotter(gui) 359 370 del gui 360 371 except ImportError: 361 print "Matplotlib not installed. No plotting available"372 print "Matplotlib not installed. No plotting available" 362 373 363 374 __date__ = '$Date$'.split()[1] … … 368 379 if is_ipython(): 369 380 def version(): print "ASAP %s(%s)"% (__version__, __date__) 381 370 382 def list_scans(t = scantable): 371 383 import types … … 420 432 get_restfreqs - get the current list of rest frequencies 421 433 set_restfreqs - set a list of rest frequencies 422 shift_refpix - shift the reference pixel of the IFs434 shift_refpix - shift the reference pixel of the IFs 423 435 flag - flag selected channels in the data 424 436 lag_flag - flag specified frequency in the data … … 427 439 nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans 428 440 nscan - the number of scans in the scantable 429 nrow - t e number of spectra in the scantable441 nrow - the number of spectra in the scantable 430 442 history - print the history of the scantable 431 443 get_fit - get a fit which has been stored witnh the data -
trunk/python/asaplotgui.py
r1153 r1422 5 5 from asap.asaplotbase import * 6 6 import Tkinter as Tk 7 import matplotlib 7 8 from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, \ 8 9 FigureManagerTkAgg 9 10 # Force use of the newfangled toolbar. 10 import matplotlib11 matplotlib.use("TkAgg")12 11 matplotlib.rcParams['toolbar'] = 'toolbar2' 13 12
Note:
See TracChangeset
for help on using the changeset viewer.