- Timestamp:
- 03/24/06 13:41:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r895 r928 68 68 'scantable.autoaverage' : [True, _validate_bool], 69 69 'scantable.freqframe' : ['LSRK', str], #default frequency frame 70 'scantable.plotter' : [True, _validate_bool], # use internal plotter71 70 'scantable.verbosesummary' : [False, _validate_bool] 72 71 … … 215 214 def _is_sequence_or_number(param, ptype=int): 216 215 if isinstance(param,tuple) or isinstance(param,list): 216 if len(param) == 0: return True # empty list 217 217 out = True 218 218 for p in param: … … 223 223 return False 224 224 225 def _to_list(param, ptype=int): 226 if isinstance(param, ptype): 227 if ptype is str: return param.split() 228 else: return [param] 229 if _is_sequence_or_number(param, ptype): 230 return param 231 return None 225 232 226 233 # workaround for ipython, which redirects this if banner=0 in ipythonrc … … 254 261 from numarray import logical_not as mask_not 255 262 256 #if rcParams['useplotter']:257 #from asapplotter import *258 #gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui']259 #plotter = asapplotter(gui)260 #del gui263 if rcParams['useplotter']: 264 from asapplotter import * 265 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 266 plotter = asapplotter(gui) 267 del gui 261 268 262 269 __date__ = '$Date$'.split()[1]
Note:
See TracChangeset
for help on using the changeset viewer.