Changeset 2966 for trunk/python


Ignore:
Timestamp:
07/01/14 12:25:25 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: Yes CAS-6598

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: method parameter (removed)

Test Programs: test_sdscale

Put in Release Notes: No

Module(s): sd

Description: removed a parameter of sd.scantable.scale(), skip_flaggedrow, and also changed the default behaviour of the method to skip scaling for row-flagged spectra.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2957 r2966  
    48044804
    48054805    @asaplog_post_dec
    4806     def scale(self, factor, tsys=True, insitu=None, skip_flaggedrow=False):
     4806    def scale(self, factor, tsys=True, insitu=None):
    48074807        """\
    48084808
     
    48194819            tsys:        if True (default) then apply the operation to Tsys
    48204820                         as well as the data
    4821 
    4822             skip_flaggedrow: if True, scaling is NOT executed for
    4823                              row-flagged spectra. default is False.
    48244821        """
    48254822        if insitu is None: insitu = rcParams['insitu']
     
    48324829                                                         numpy.ndarray):
    48334830                from asapmath import _array2dOp
    4834                 s = _array2dOp( self, factor, "MUL", tsys, insitu, skip_flaggedrow )
     4831                s = _array2dOp( self, factor, "MUL", tsys, insitu, True )
    48354832            else:
    48364833                s = scantable( self._math._arrayop( self, factor,
    4837                                                     "MUL", tsys, skip_flaggedrow ) )
     4834                                                    "MUL", tsys, True ) )
    48384835        else:
    4839             s = scantable(self._math._unaryop(self, factor, "MUL", tsys, skip_flaggedrow))
     4836            s = scantable(self._math._unaryop(self, factor, "MUL", tsys, True ))
    48404837        s._add_history("scale", varlist)
    48414838        if insitu:
Note: See TracChangeset for help on using the changeset viewer.