Changeset 929 for trunk


Ignore:
Timestamp:
03/24/06 13:42:31 (19 years ago)
Author:
mar637
Message:

made it consistent with the interfaces changes at c++ level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplinefind.py

    r907 r929  
    7373        if not scan:
    7474           raise RuntimeError, 'Please give a correct scan'
    75         return
    76     def find_lines(self,nRow=0,mask=None,edge=(0,0)):
     75        self.finder.setscan(scan)
     76
     77    def find_lines(self,nRow=0,mask=[],edge=(0,0)):
    7778        """
    7879        Search for spectral lines in the scan assigned in set_scan.
     
    99100           raise RuntimeError, "The edge parameter should have two \
    100101           or less elements"
    101         if mask is None:
    102             from numarray import ones
    103             return self.finder.findlines(ones(scan.nchan(nRow)),list(edge),nRow)
    104         else:
    105             return self.finder.setscan(mask,list(edge),nRow)
     102        return self.finder.findlines(mask,list(edge),nRow)
    106103    def get_mask(self,invert=False):
    107104        """
Note: See TracChangeset for help on using the changeset viewer.