Changeset 158 for trunk/python/asapfitter.py
- Timestamp:
- 12/26/04 21:57:09 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapfitter.py
r123 r158 31 31 def set_data(self, xdat, ydat, mask=None): 32 32 """ 33 Set the abs cissa and ordinate for the fit. Also set the mask33 Set the absissa and ordinate for the fit. Also set the mask 34 34 indicationg valid points. 35 35 This can be used for data vectors retrieved from a scantable. 36 36 For scantable fitting use 'fitter.set_scan(scan, mask)'. 37 37 Parameters: 38 xdat: the ab scissa values38 xdat: the abcissa values 39 39 ydat: the ordinate values 40 40 mask: an optional mask … … 110 110 else: 111 111 if self.data is not None: 112 self.x = self.data.getab scissa()112 self.x = self.data.getabcissa() 113 113 self.y = self.data.getspectrum() 114 114 print "Fitting:" … … 229 229 self._p.clear() 230 230 tlab = 'Spectrum' 231 xlab = 'Ab scissa'231 xlab = 'Abcissa' 232 232 if self.data: 233 233 tlab = self.data._getsourcename(0) 234 xlab = self.data.getab scissalabel(0)234 xlab = self.data.getabcissalabel(0) 235 235 ylab = r'Flux' 236 236 m = self.data.getmask(0) … … 268 268 for k in range(scan.npol()): 269 269 scan.setpol(k) 270 self.x = scan.getab scissa()270 self.x = scan.getabcissa() 271 271 self.y = scan.getspectrum() 272 272 self.data = None
Note: See TracChangeset
for help on using the changeset viewer.