Changeset 1649 for branches/alma/python


Ignore:
Timestamp:
10/08/09 04:03:03 (15 years ago)
Author:
TakTsutsumi
Message:

New Development: No

JIRA Issue: No (regression test failure)

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: fixed a bug in scantable.poly_baseline()


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/scantable.py

    r1637 r1649  
    15181518        """
    15191519        if insitu is None: insitu = rcParams['insitu']
     1520        if not insitu:
     1521            workscan = self.copy()
     1522        else:
     1523            workscan = self
    15201524        varlist = vars()
    15211525        if mask is None:
     
    15511555                f.data = None
    15521556                f.fit()
     1557                workscan._setspectrum(f.fitter.getresidual(), r)
    15531558                fpar = f.get_parameters()
    15541559                self.blpars.append(fpar)
     
    15591564            ## NOTICE: It does not reflect changes in scantable!
    15601565            #self.blpars = f.blpars
    1561             s._add_history("poly_baseline", varlist)
     1566            workscan._add_history("poly_baseline", varlist)
    15621567            print_log()
    1563             if insitu: self._assign(s)
    1564             else: return s
     1568            if insitu: self._assign(workscan)
     1569            else: return workscan
    15651570        except RuntimeError:
    15661571            msg = "The fit failed, possibly because it didn't converge."
Note: See TracChangeset for help on using the changeset viewer.