Changeset 3008 for trunk/python
- Timestamp:
- 10/17/14 23:23:35 (10 years ago)
- File:
-
- 1 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")
Note:
See TracChangeset
for help on using the changeset viewer.