- Timestamp:
- 10/08/09 04:03:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/scantable.py
r1637 r1649 1518 1518 """ 1519 1519 if insitu is None: insitu = rcParams['insitu'] 1520 if not insitu: 1521 workscan = self.copy() 1522 else: 1523 workscan = self 1520 1524 varlist = vars() 1521 1525 if mask is None: … … 1551 1555 f.data = None 1552 1556 f.fit() 1557 workscan._setspectrum(f.fitter.getresidual(), r) 1553 1558 fpar = f.get_parameters() 1554 1559 self.blpars.append(fpar) … … 1559 1564 ## NOTICE: It does not reflect changes in scantable! 1560 1565 #self.blpars = f.blpars 1561 s._add_history("poly_baseline", varlist)1566 workscan._add_history("poly_baseline", varlist) 1562 1567 print_log() 1563 if insitu: self._assign( s)1564 else: return s1568 if insitu: self._assign(workscan) 1569 else: return workscan 1565 1570 except RuntimeError: 1566 1571 msg = "The fit failed, possibly because it didn't converge."
Note:
See TracChangeset
for help on using the changeset viewer.