Changeset 409 for trunk


Ignore:
Timestamp:
02/11/05 09:49:26 (20 years ago)
Author:
mar637
Message:

Removed (public) reset until I fix the cursor. read() now auto-resets after each call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r408 r409  
    5858        sdreader._read(self,integrations)
    5959        tbl = sdreader._getdata(self)
     60        sdreader._reset(self) # reset to the beginning of the file
    6061        if self.unit is not None:
    6162            tbl.set_fluxunit(self.unit)
     
    7778        print tbl._summary()
    7879        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         """
    92         sdreader._reset(self)
     80##     def reset(self):
     81##         """
     82##         [Advanced use]
     83##         Reset to the beginning of the file.
     84##         Parameters:
     85##              none
     86##         Examples:
     87##              r = reader('xyz.sdfits')
     88##              scans0 = r.read(range(10))
     89##              r.reset()
     90##              scans1 = r.read(range(5,15))
     91##              # produces 2 scatables  one containing integrations(rows) 0-9
     92##              # and a second one with rows 5-14
     93##         """
     94##        sdreader._reset(self)
    9395       
Note: See TracChangeset for help on using the changeset viewer.