Changeset 346


Ignore:
Timestamp:
02/01/05 17:21:28 (19 years ago)
Author:
kil064
Message:

finally fix scantable constructor for 'unit' handling.
i really must learn python !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r345 r346  
    3333            sdtable.__init__(self, filename)           
    3434            if unit is not None:
    35                 sdtable.set_fluxunit(unit)                       
     35                self.set_fluxunit(unit)                       
    3636        else:
    3737            try:
     
    5555                ifSel = -1
    5656                beamSel = -1
    57                 if unit is None:
    58                     unit = ""
    5957                r = sdreader(filename,ifSel,beamSel)
    6058                print 'Importing data...'
    6159                r.read([-1])
    6260                tbl = r.getdata()
     61                if unit is not None:
     62                    tbl.set_fluxunit(unit)
    6363                if autoav:
    6464                    from asap._asap import average
Note: See TracChangeset for help on using the changeset viewer.