Changeset 1200 for trunk/python


Ignore:
Timestamp:
08/29/06 11:03:45 (18 years ago)
Author:
mar637
Message:

Merge from Release2.1.0b tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1192 r1200  
    640640        self._add_history("flag", varlist)
    641641
    642     def lag_flag(self, frequency, unit="GHz", width=0, insitu=None):
     642    def lag_flag(self, frequency, unit="GHz", width=0.0, insitu=None):
    643643        """
    644644        Flag the data in 'lag' space by providing a frequency to remove.
     
    648648            frequency:    the frequency to remove
    649649            unit:         the frequency unit ()default "GHz")
    650             width:        the number of 'lag' channels to extent the frequency
    651                           by, i.e. the interval
    652                           [bandwidth/frequency-width, bandwidth/frequency+width]
     650            width:        the width of the frequency to remove
    653651        """
    654652        if insitu is None: insitu = rcParams['insitu']
     
    659657            raise ValueError("%s is not a valid unit." % unit)
    660658        try:
    661             s = scantable(self._math._lag_flag(self, frequency*base[unit], width))
     659            s = scantable(self._math._lag_flag(self, frequency*base[unit],
     660                                               width*base[unit]))
    662661        except RuntimeError, msg:
    663662            if rcParams['verbose']:
Note: See TracChangeset for help on using the changeset viewer.