Ignore:
Timestamp:
06/24/14 19:59:46 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: Yes CAS-6598

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: add a parameter for some functions

Test Programs: test_sdscale

Put in Release Notes:

Module(s): sd

Description: add a parameter 'skip_flaggedrow' for STMath::unaryOperate(), STMath::arrayOperate(), STMath::arrayOperateChannel(), STMath::arrayOperateRow() and their python interfaces if exist. the default value of 'skip_flaggedrow' is false so default behaviour of these functions will not change.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2937 r2952  
    47974797
    47984798    @asaplog_post_dec
    4799     def scale(self, factor, tsys=True, insitu=None):
     4799    def scale(self, factor, tsys=True, insitu=None, skip_flaggedrow=False):
    48004800        """\
    48014801
     
    48134813                         as well as the data
    48144814
     4815            skip_flaggedrow: if True, scaling is NOT executed for
     4816                             row-flagged spectra. default is False.
    48154817        """
    48164818        if insitu is None: insitu = rcParams['insitu']
     
    48234825                                                         numpy.ndarray):
    48244826                from asapmath import _array2dOp
    4825                 s = _array2dOp( self, factor, "MUL", tsys, insitu )
     4827                s = _array2dOp( self, factor, "MUL", tsys, insitu, skip_flaggedrow )
    48264828            else:
    48274829                s = scantable( self._math._arrayop( self, factor,
    4828                                                     "MUL", tsys ) )
     4830                                                    "MUL", tsys, skip_flaggedrow ) )
    48294831        else:
    4830             s = scantable(self._math._unaryop(self, factor, "MUL", tsys))
     4832            s = scantable(self._math._unaryop(self, factor, "MUL", tsys, skip_flaggedrow))
    48314833        s._add_history("scale", varlist)
    48324834        if insitu:
Note: See TracChangeset for help on using the changeset viewer.