Changeset 406


Ignore:
Timestamp:
02/10/05 15:31:08 (20 years ago)
Author:
mar637
Message:

added rest function, reflect changes in function names in python_SDReader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r360 r406  
    5656            integrations = [-1]
    5757        print "Reading integrations from disk..."
    58         sdreader.read(self,integrations)
    59         tbl = sdreader.getdata(self)
     58        sdreader._read(self,integrations)
     59        tbl = sdreader._getdata(self)
    6060        if self.unit is not None:
    6161            tbl.set_fluxunit(self.unit)
     
    7171             r.summary()
    7272        """
    73         sdreader.reset(self)
    74         sdreader.read(self,[-1])
    75         tbl = sdreader.getdata(self)
    76         sdreader.reset(self)
     73        sdreader._reset(self)
     74        sdreader._read(self,[-1])
     75        tbl = sdreader._getdata(self)
     76        sdreader._reset(self)
    7777        print tbl._summary()
    7878        return
     79    def reset(self):
     80        """
     81        Reset to the beginning of the file.
     82        Parameters:
     83             none
     84        Examples:
     85             r = reader('xyz.sdfits')
     86             scans0 = r.read(range(10))
     87             r.reset()
     88             scans1 = r.read(range(5,15))
     89             # produces 2 scatables  one containing integrations(rows) 0-9
     90             # and a second one with rows 5-14
     91        sdreader._reset(self)
     92       
Note: See TracChangeset for help on using the changeset viewer.