Changeset 1586 for trunk/python
- Timestamp:
- 06/30/09 15:46:14 (15 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1560 r1586 116 116 'scantable.storage' : ['memory', str], 117 117 'scantable.history' : [True, _validate_bool], 118 'scantable.reference' : ['.*(e|w|_R)$', str] 118 'scantable.reference' : ['.*(e|w|_R)$', str], 119 'scantable.parallactify' : [False, _validate_bool] 119 120 # fitter 120 121 } -
trunk/python/scantable.py
r1584 r1586 12 12 """ 13 13 14 def __init__(self, filename, average=None, unit=None ):14 def __init__(self, filename, average=None, unit=None, parallactify=None): 15 15 """ 16 16 Create a scantable from a saved one or make a reference … … 30 30 (input rpfits/sdfits/ms) or replaces the value 31 31 in existing scantables 32 parallactify: Indcicate that the data had been parallatified. 33 Default is taken form rc file. 32 34 """ 33 35 if average is None: 34 36 average = rcParams['scantable.autoaverage'] 37 if parallactify is None: 38 parallactify = rcParams['scantable.parallactify'] 35 39 varlist = vars() 36 40 from asap._asap import stmath … … 74 78 and isinstance(filename[-1], str): 75 79 self._fill(filename, unit, average) 80 self.parallactify(parallactify) 76 81 self._add_history("scantable", varlist) 77 82 print_log() … … 1224 1229 return s 1225 1230 1231 def parallactify(self, pflag): 1232 varlist = vars() 1233 self._parallactify(pflag) 1234 self._add_history("parallactify", varlist) 1235 1226 1236 def convert_pol(self, poltype=None): 1227 1237 """
Note:
See TracChangeset
for help on using the changeset viewer.