Ignore:
Timestamp:
03/01/05 15:12:17 (19 years ago)
Author:
mar637
Message:

*added get_fit

  • added more commands()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r524 r530  
    10611061            # not using a mask
    10621062            bscan = scan.poly_baseline(order=3)
    1063         """
     1063        """('', 'TOPO', 'RADIO', 'TOPO')
    10641064        if insitu is None: insitu = rcParams['insitu']
    10651065        varlist = vars()
     
    13581358        s._add_history("operator /", varlist)
    13591359        return s
     1360
     1361    def get_fit(self, row=0):
     1362        """
     1363        Print or return the stored fits for a row in the scantable
     1364        Parameters:
     1365            row:    the row which the fit has been applied to.
     1366        """
     1367        if row > self.nrow():
     1368            return
     1369        from asap import asapfit
     1370        fit = asapfit(self._getfit(row))
     1371        if self._vb:
     1372            print fit
     1373            return
     1374        else:
     1375            return fit.as_dict()
    13601376
    13611377    def _add_history(self, funcname, parameters):
Note: See TracChangeset for help on using the changeset viewer.