Changeset 341 for trunk/python
- Timestamp:
- 02/01/05 13:15:16 (20 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapreader.py
r339 r341 19 19 """ 20 20 21 def __init__(self, filename,unit=None, theif=None, thebeam=None): 21 def __init__(self, filename, unit=None, theif=None, thebeam=None): 22 self.unit = unit 22 23 """ 23 24 Parameters: … … 31 32 r = reader('/tmp/2001-09-01_0332_P363.rpf', theif=2) 32 33 """ 33 if unit is None:34 unit = ""35 34 if theif is None: 36 35 theif = -1 37 36 if thebeam is None: 38 37 thebeam = -1 39 sdreader.__init__(self, filename, unit,theif, thebeam)38 sdreader.__init__(self, filename, theif, thebeam) 40 39 41 40 def read(self,integrations=None): … … 59 58 sdreader.read(self,integrations) 60 59 tbl = sdreader.getdata(self) 60 if self.unit is not None: 61 tbl.set_fluxunit(self.unit) 61 62 return scantable(tbl) 62 63 -
trunk/python/scantable.py
r340 r341 33 33 sdtable.__init__(self, filename) 34 34 if unit is not None: 35 print 'Setting brightness unit to ', unit36 35 sdtable.set_fluxunit(unit) 37 36 else: … … 46 45 sdtable.__init__(self, filename) 47 46 if unit is not None: 48 print 'Setting brightness unit to ', unit49 47 self.set_fluxunit(unit) 50 48 else:
Note:
See TracChangeset
for help on using the changeset viewer.