Changeset 3008 for trunk


Ignore:
Timestamp:
10/17/14 23:23:35 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: CAS-6594

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: test_sdmath

Put in Release Notes: No

Module(s): sd, unit test

Description: changed skip_flagrow to True in scantable.op(), also changed the default skip_flagrow value to True in STMath::unaryOperate() and arrayOperate().


Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2987 r3008  
    50535053            if other == 0.0:
    50545054                raise ZeroDivisionError("Dividing by zero is not recommended")
    5055             s = scantable(self._math._unaryop(self, other, mode, False, False))
     5055            s = scantable(self._math._unaryop(self, other, mode, False, True))
    50565056        elif isinstance(other, list) or isinstance(other, numpy.ndarray):
    50575057            if isinstance(other[0], list) \
    50585058                    or isinstance(other[0], numpy.ndarray):
    50595059                from asapmath import _array2dOp
    5060                 s = _array2dOp( self, other, mode, False )
     5060                s = _array2dOp(self, other, mode, False)
    50615061            else:
    5062                 s = scantable( self._math._arrayop( self, other,
    5063                                                     mode, False, False ) )
     5062                s = scantable(self._math._arrayop(self, other, mode, False, True))
    50645063        else:
    50655064            raise TypeError("Other input is not a scantable or float value")
  • trunk/src/STMathWrapper.h

    r2952 r3008  
    7171    unaryOperate( const ScantableWrapper& in, float val,
    7272                  const std::string& mode, bool tsys=false,
    73                   bool skip_flaggedrow=false )
     73                  bool skip_flaggedrow=true )
    7474  { return ScantableWrapper(STMath::unaryOperate(in.getCP(), val, mode, tsys, skip_flaggedrow)); }
    7575
     
    7878                                 const std::string& mode,
    7979                                 bool tsys=false,
    80                                  bool skip_flaggedrow=false )
     80                                 bool skip_flaggedrow=true )
    8181  { return ScantableWrapper(STMath::arrayOperateChannel(in.getCP(), val, mode, tsys, skip_flaggedrow)); }
    8282
Note: See TracChangeset for help on using the changeset viewer.