Ignore:
Timestamp:
04/07/06 09:41:20 (19 years ago)
Author:
mar637
Message:

added flagging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r992 r1001  
    585585        print_log()
    586586        return abc, lbl
     587
     588    def flag(self, mask=[]):
     589        """
     590        Flag the selected data using an optional channel mask.
     591        Parameters:
     592            mask:   an optional channel mask, created with create_mask. Default
     593                    (no mask) is all channels.
     594        """
     595        varlist = vars()
     596        try:
     597            self._flag(mask)
     598        except RuntimeError,msg:
     599            if rcParams['verbose']:
     600                print msg
     601                return
     602            else: raise
     603        self._add_history("flag", varlist)
     604
    587605
    588606    def create_mask(self, *args, **kwargs):
Note: See TracChangeset for help on using the changeset viewer.