Changeset 1573 for trunk


Ignore:
Timestamp:
06/29/09 12:18:05 (15 years ago)
Author:
Malte Marquarding
Message:

Fix for Ticket #163: mixed up self and s instance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1565 r1573  
    9191                                       'MS2' (saves as an aips++
    9292                                              MeasurementSet V2)
    93                                        'FITS' (save as image FITS - not 
     93                                       'FITS' (save as image FITS - not
    9494                                               readable by class)
    9595                                       'CLASS' (save as FITS readable by CLASS)
     
    280280        """Return the spectrum for the current row in the scantable as a list.
    281281        Parameters:
    282              rowno:   the row number to retrieve the spectrum from       
     282             rowno:   the row number to retrieve the spectrum from
    283283        """
    284284        return self._getspectrum(rowno)
     
    287287        """Return the mask for the current row in the scantable as a list.
    288288        Parameters:
    289              rowno:   the row number to retrieve the mask from       
     289             rowno:   the row number to retrieve the mask from
    290290        """
    291291        return self._getmask(rowno)
     
    295295        Parameters:
    296296             spec:   the spectrum
    297              rowno:    the row number to set the spectrum for       
     297             rowno:    the row number to set the spectrum for
    298298        """
    299299        assert(len(spec) == self.nchan())
     
    487487            none
    488488        """
    489         return self._get_column(self._getinttime, row)       
    490        
     489        return self._get_column(self._getinttime, row)
     490
    491491
    492492    def get_sourcename(self, row=-1):
     
    898898    def shift_refpix(self, delta):
    899899        """
    900         Shift the reference pixel of the Spectra Coordinate by an 
     900        Shift the reference pixel of the Spectra Coordinate by an
    901901        integer amount.
    902902        Parameters:
     
    11551155        """
    11561156        Return a scan where all spectra have been binned up.
    1157        
     1157
    11581158        Parameters:
    11591159            width:       The bin width (default=5) in pixels
     
    14571457    def swap_linears(self):
    14581458        """
    1459         Swap the linear polarisations XX and YY, or better the first two 
     1459        Swap the linear polarisations XX and YY, or better the first two
    14601460        polarisations as this also works for ciculars.
    14611461        """
     
    15521552        self._setsourcetype(stype)
    15531553        self.set_selection(basesel)
    1554         s._add_history("set_sourcetype", varlist)
     1554        self._add_history("set_sourcetype", varlist)
    15551555
    15561556    def auto_quotient(self, preserve=True, mode='paired'):
     
    15641564                            preserve: Output = Toff * (on/off) - Toff
    15651565                            remove:   Output = Toff * (on/off) - Ton
    1566             mode:           the on/off detection mode 
     1566            mode:           the on/off detection mode
    15671567                            'paired' (default)
    15681568                            identifies 'off' scans by the
     
    16551655        s = None
    16561656        if isinstance(other, scantable):
    1657             s = scantable(self._math._binaryop(self, other, "ADD"))
     1657            s = scantable(self._math._binaryop(self, other, "ADD"))
    16581658        elif isinstance(other, float):
    16591659            s = scantable(self._math._unaryop(self, other, "ADD", False))
     
    17491749            self.flag(bnans)
    17501750        self.set_selection(basesel)
    1751        
     1751
    17521752
    17531753    def _add_history(self, funcname, parameters):
Note: See TracChangeset for help on using the changeset viewer.