Changeset 889 for trunk/python
- Timestamp:
- 03/08/06 13:16:12 (19 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplinefind.py
r880 r889 65 65 return 66 66 67 def set_scan(self, scan,mask=None,edge=(0,0)):67 def set_scan(self, scan, mask=None, edge=(0,0)): 68 68 """ 69 69 Set the 'data' (scantable) to work with. … … 80 80 raise RuntimeError, 'Please give a correct scan' 81 81 if not scan._check_ifs(): 82 82 raise RuntimeError, 'IFs with different numbers of channels are not yet supported' 83 83 84 84 if isinstance(edge,int): -
trunk/python/scantable.py
r880 r889 1377 1377 def _check_ifs(self): 1378 1378 nchans = [self.nchan(i) for i in range(self.nif(-1))] 1379 nchans = filter(lambda t: t > 0, nchans) 1379 1380 return (sum(nchans)/len(nchans) == nchans[0])
Note:
See TracChangeset
for help on using the changeset viewer.