Changeset 2322


Ignore:
Timestamp:
10/05/11 10:56:59 (13 years ago)
Author:
Malte Marquarding
Message:

Fixed another instance of inserting a new method argument. THIS NEEDS TO GO TO THE END!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2320 r2322  
    11331133
    11341134    @asaplog_post_dec
    1135     def flag(self, row=-1, mask=None, unflag=False):
     1135    def flag(self, mask=None, unflag=False, row=-1):
    11361136        """\
    11371137        Flag the selected data using an optional channel mask.
    11381138
    11391139        Parameters:
     1140
     1141            mask:   an optional channel mask, created with create_mask. Default
     1142                    (no mask) is all channels.
     1143
     1144            unflag:    if True, unflag the data
    11401145
    11411146            row:    an optional row number in the scantable.
    11421147                      Default -1 flags all rows
    11431148                     
    1144             mask:   an optional channel mask, created with create_mask. Default
    1145                     (no mask) is all channels.
    1146 
    1147             unflag:    if True, unflag the data
    1148 
    11491149        """
    11501150        varlist = vars()
     
    11541154
    11551155    @asaplog_post_dec
    1156     def flag_row(self, rows=[], unflag=False):
     1156    def flag_row(self, rows=None, unflag=False):
    11571157        """\
    11581158        Flag the selected data in row-based manner.
     
    11611161
    11621162            rows:   list of row numbers to be flagged. Default is no row
    1163                     (must be explicitly specified to execute row-based flagging).
     1163                    (must be explicitly specified to execute row-based
     1164                    flagging).
    11641165
    11651166            unflag: if True, unflag the data.
     
    11671168        """
    11681169        varlist = vars()
     1170        if rows is None:
     1171            rows = []
    11691172        self._flag_row(rows, unflag)
    11701173        self._add_history("flag_row", varlist)
     
    11811184            dthres:      lower threshold
    11821185
    1183             clipoutside: True for flagging data outside the range [dthres:uthres].
     1186            clipoutside: True for flagging data outside the range
     1187                         [dthres:uthres].
    11841188                         False for flagging data inside the range.
    11851189
Note: See TracChangeset for help on using the changeset viewer.