Changeset 719 for trunk/python


Ignore:
Timestamp:
11/18/05 11:10:10 (19 years ago)
Author:
mar637
Message:

added asaplog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r415 r719  
    11from asap._asap import sdreader
     2from asap import print_log
    23
    34class reader(sdreader):
     
    4647        filename = expandvars(filename)
    4748        sdreader.__init__(self, filename, theif, thebeam)
     49        print_log()
    4850
    4951    def read(self,integrations=None):
     
    6264        """
    6365        from asap import scantable
     66        from asap import asaplog
    6467        if integrations is None:
    6568            integrations = [-1]
    66         print "Reading integrations from disk..."
     69        asaplog.push("Reading integrations from disk...")
    6770        sdreader._read(self,integrations)
    6871        tbl = sdreader._getdata(self)
     
    7073        if self.unit is not None:
    7174            tbl.set_fluxunit(self.unit)
     75        print_log()
    7276        return scantable(tbl)
    7377
     
    8892        tbl.summary(name)
    8993        return
    90 ##     def reset(self):
    91 ##         """
    92 ##         [Advanced use]
    93 ##         Reset to the beginning of the file.
    94 ##         Parameters:
    95 ##              none
    96 ##         Examples:
    97 ##              r = reader('xyz.sdfits')
    98 ##              scans0 = r.read(range(10))
    99 ##              r.reset()
    100 ##              scans1 = r.read(range(5,15))
    101 ##              # produces 2 scatables  one containing integrations(rows) 0-9
    102 ##              # and a second one with rows 5-14
    103 ##         """
    104 ##        sdreader._reset(self)
    105        
Note: See TracChangeset for help on using the changeset viewer.