- Timestamp:
- 03/24/06 13:42:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplinefind.py
r907 r929 73 73 if not scan: 74 74 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)): 77 78 """ 78 79 Search for spectral lines in the scan assigned in set_scan. … … 99 100 raise RuntimeError, "The edge parameter should have two \ 100 101 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) 106 103 def get_mask(self,invert=False): 107 104 """
Note:
See TracChangeset
for help on using the changeset viewer.