Changeset 2012 for trunk/python/asaplinefind.py
- Timestamp:
- 02/25/11 16:51:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplinefind.py
r1826 r2012 101 101 self.finder.setscan(scan) 102 102 103 def set_data(self, spectrum): 104 """ 105 Set the 'data' (spectrum) to work with 106 Parameters: a method to allow linefinder work without setting scantable 107 for the purpose of using linefinder inside some method in scantable 108 class. (Dec 22, 2010 by W.Kawasaki) 109 """ 110 if isinstance(spectrum, list) or isinstance(spectrum, tuple): 111 if not isinstance(spectrum[0], float): 112 raise RuntimeError, "Parameter 'spectrum' has to be a list or a tuple of float" 113 else: 114 raise RuntimeError, "Parameter 'spectrum' has to be a list or a tuple of float" 115 self.finder.setdata(spectrum) 116 103 117 def find_lines(self,nRow=0,mask=[],edge=(0,0)): 104 118 """
Note: See TracChangeset
for help on using the changeset viewer.