Changeset 889


Ignore:
Timestamp:
03/08/06 13:16:12 (19 years ago)
Author:
mar637
Message:

fixed _check_ifs()

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplinefind.py

    r880 r889  
    6565        return
    6666
    67     def set_scan(self,scan,mask=None,edge=(0,0)):
     67    def set_scan(self, scan, mask=None, edge=(0,0)):
    6868        """
    6969        Set the 'data' (scantable) to work with.
     
    8080           raise RuntimeError, 'Please give a correct scan'
    8181        if not scan._check_ifs():
    82                 raise RuntimeError, 'IFs with different numbers of channels are not yet supported'
     82           raise RuntimeError, 'IFs with different numbers of channels are not yet supported'
    8383
    8484        if isinstance(edge,int):
  • trunk/python/scantable.py

    r880 r889  
    13771377    def _check_ifs(self):
    13781378        nchans = [self.nchan(i) for i in range(self.nif(-1))]
     1379        nchans = filter(lambda t: t > 0, nchans)
    13791380        return (sum(nchans)/len(nchans) == nchans[0])
Note: See TracChangeset for help on using the changeset viewer.