Changeset 2954 for trunk


Ignore:
Timestamp:
06/25/14 15:28:00 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes:

Module(s): sd

Description: add parameter (skip_flaggedrow) where they were missing in stmath._unaryop and stmath._arrayop called in scantable.op().


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2952 r2954  
    952952
    953953        for i in rows:
     954            print '@@@@@@@@'
     955            print '['+str(i)+'/'+str(rows)+'] -- '+('RowFlagged' if self._getflagrow(i) else '')
     956            print '@@@@@@@@'
     957            #if self._getflagrow(i): continue
    954958            refstr = ''
    955959            statunit= ''
     
    47894793        self._math._setinsitu(insitu)
    47904794        varlist = vars()
    4791         s = scantable(self._math._unaryop(self, offset, "ADD", False))
     4795        s = scantable(self._math._unaryop(self, offset, "ADD", False, False))
    47924796        s._add_history("add", varlist)
    47934797        if insitu:
     
    50435047            if other == 0.0:
    50445048                raise ZeroDivisionError("Dividing by zero is not recommended")
    5045             s = scantable(self._math._unaryop(self, other, mode, False))
     5049            s = scantable(self._math._unaryop(self, other, mode, False, False))
    50465050        elif isinstance(other, list) or isinstance(other, numpy.ndarray):
    50475051            if isinstance(other[0], list) \
     
    50515055            else:
    50525056                s = scantable( self._math._arrayop( self, other,
    5053                                                     mode, False ) )
     5057                                                    mode, False, False ) )
    50545058        else:
    50555059            raise TypeError("Other input is not a scantable or float value")
Note: See TracChangeset for help on using the changeset viewer.