Ignore:
Timestamp:
10/04/11 13:40:03 (13 years ago)
Author:
Malte Marquarding
Message:

Ticket #251: fixed copy of input scantable which breaks scantable selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2315 r2320  
    575575                for k in kw:
    576576                    if k not in selector.fields:
    577                         raise KeyError("Invalid selection key '%s', valid keys are %s" % (k, selector.fields))
     577                        raise KeyError("Invalid selection key '%s', "
     578                                       "valid keys are %s" % (k,
     579                                                              selector.fields))
    578580                selection = selector(**kw)
    579581        self._setselection(selection)
     
    31163118        import numpy
    31173119        if isinstance(factor, list) or isinstance(factor, numpy.ndarray):
    3118             if isinstance(factor[0], list) or isinstance(factor[0], numpy.ndarray):
     3120            if isinstance(factor[0], list) or isinstance(factor[0],
     3121                                                         numpy.ndarray):
    31193122                from asapmath import _array2dOp
    3120                 s = _array2dOp( self.copy(), factor, "MUL", tsys )
     3123                s = _array2dOp( self, factor, "MUL", tsys, insitu )
    31213124            else:
    3122                 s = scantable( self._math._arrayop( self.copy(), factor, "MUL", tsys ) )
     3125                s = scantable( self._math._arrayop( self, factor,
     3126                                                    "MUL", tsys ) )
    31233127        else:
    3124             s = scantable(self._math._unaryop(self.copy(), factor, "MUL", tsys))
     3128            s = scantable(self._math._unaryop(self, factor, "MUL", tsys))
    31253129        s._add_history("scale", varlist)
    31263130        if insitu:
Note: See TracChangeset for help on using the changeset viewer.