Changeset 1401


Ignore:
Timestamp:
12/15/07 10:46:22 (17 years ago)
Author:
TakTsutsumi
Message:

add unflag to flag function

File:
1 edited

Legend:

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

    r1389 r1401  
    651651        return abc, lbl
    652652
    653     def flag(self, mask=None):
     653    def flag(self, mask=None, unflag=False):
    654654        """
    655655        Flag the selected data using an optional channel mask.
     
    657657            mask:   an optional channel mask, created with create_mask. Default
    658658                    (no mask) is all channels.
     659            unflag:    if True, unflag the data
    659660        """
    660661        varlist = vars()
     
    662663            mask = []
    663664        try:
    664             self._flag(mask)
     665            self._flag(mask, unflag)
    665666        except RuntimeError, msg:
    666667            if rcParams['verbose']:
Note: See TracChangeset for help on using the changeset viewer.