- Timestamp:
- 10/17/14 23:23:35 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2987 r3008 5053 5053 if other == 0.0: 5054 5054 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)) 5056 5056 elif isinstance(other, list) or isinstance(other, numpy.ndarray): 5057 5057 if isinstance(other[0], list) \ 5058 5058 or isinstance(other[0], numpy.ndarray): 5059 5059 from asapmath import _array2dOp 5060 s = _array2dOp( self, other, mode, False)5060 s = _array2dOp(self, other, mode, False) 5061 5061 else: 5062 s = scantable( self._math._arrayop( self, other, 5063 mode, False, False ) ) 5062 s = scantable(self._math._arrayop(self, other, mode, False, True)) 5064 5063 else: 5065 5064 raise TypeError("Other input is not a scantable or float value") -
trunk/src/STMathWrapper.h
r2952 r3008 71 71 unaryOperate( const ScantableWrapper& in, float val, 72 72 const std::string& mode, bool tsys=false, 73 bool skip_flaggedrow= false )73 bool skip_flaggedrow=true ) 74 74 { return ScantableWrapper(STMath::unaryOperate(in.getCP(), val, mode, tsys, skip_flaggedrow)); } 75 75 … … 78 78 const std::string& mode, 79 79 bool tsys=false, 80 bool skip_flaggedrow= false )80 bool skip_flaggedrow=true ) 81 81 { return ScantableWrapper(STMath::arrayOperateChannel(in.getCP(), val, mode, tsys, skip_flaggedrow)); } 82 82
Note:
See TracChangeset
for help on using the changeset viewer.