Changeset 1310 for branches/Release2.1.2/python
- Timestamp:
- 12/14/06 11:21:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release2.1.2/python/scantable.py
r1295 r1310 1413 1413 return s 1414 1414 1415 def scale(self, factor, tsys=True, insitu=None ,):1415 def scale(self, factor, tsys=True, insitu=None): 1416 1416 """ 1417 1417 Return a scan where all spectra are scaled by the give 'factor' … … 1519 1519 s = None 1520 1520 if isinstance(other, scantable): 1521 print "scantable + scantable NYI" 1522 return 1521 s = scantable(self._math._binaryop(self, other, "ADD")) 1523 1522 elif isinstance(other, float): 1524 1523 s = scantable(self._math._unaryop(self, other, "ADD", False)) … … 1536 1535 s = None 1537 1536 if isinstance(other, scantable): 1538 print "scantable - scantable NYI" 1539 return 1537 s = scantable(self._math._binaryop(self, other, "SUB")) 1540 1538 elif isinstance(other, float): 1541 1539 s = scantable(self._math._unaryop(self, other, "SUB", False)) … … 1553 1551 s = None 1554 1552 if isinstance(other, scantable): 1555 print "scantable * scantable NYI" 1556 return 1553 s = scantable(self._math._binaryop(self, other, "MUL")) 1557 1554 elif isinstance(other, float): 1558 1555 s = scantable(self._math._unaryop(self, other, "MUL", False)) … … 1571 1568 s = None 1572 1569 if isinstance(other, scantable): 1573 print "scantable / scantable NYI" 1574 return 1570 s = scantable(self._math._binaryop(self, other, "DIV")) 1575 1571 elif isinstance(other, float): 1576 1572 if other == 0.0:
Note:
See TracChangeset
for help on using the changeset viewer.