Ignore:
Timestamp:
07/02/09 11:02:45 (15 years ago)
Author:
Malte Marquarding
Message:

Added method get_row_selector, which returns a selection object for the a specific row

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1586 r1588  
    16971697        s = None
    16981698        if isinstance(other, scantable):
    1699             s = scantable(self._math._binaryop(self, other, "SUB"))
     1699            s = scantable(self._math._binaryop(self, other, "SUB"))
    17001700        elif isinstance(other, float):
    17011701            s = scantable(self._math._unaryop(self, other, "SUB", False))
     
    17131713        s = None
    17141714        if isinstance(other, scantable):
    1715             s = scantable(self._math._binaryop(self, other, "MUL"))
     1715            s = scantable(self._math._binaryop(self, other, "MUL"))
    17161716        elif isinstance(other, float):
    17171717            s = scantable(self._math._unaryop(self, other, "MUL", False))
     
    17761776        self.set_selection(basesel)
    17771777
     1778    def get_row_selector(self, rowno):
     1779        return selector(beams=self.getbeam(rowno),
     1780                        ifs=self.getif(rowno),
     1781                        pols=self.getpol(rowno),
     1782                        scans=self.getscan(rowno),
     1783                        cycles=self.getcycle(rowno))
    17781784
    17791785    def _add_history(self, funcname, parameters):
Note: See TracChangeset for help on using the changeset viewer.