- Timestamp:
- 02/11/05 09:49:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapreader.py
r408 r409 58 58 sdreader._read(self,integrations) 59 59 tbl = sdreader._getdata(self) 60 sdreader._reset(self) # reset to the beginning of the file 60 61 if self.unit is not None: 61 62 tbl.set_fluxunit(self.unit) … … 77 78 print tbl._summary() 78 79 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) 93 95
Note:
See TracChangeset
for help on using the changeset viewer.