Changeset 241 for trunk


Ignore:
Timestamp:
01/21/05 12:30:33 (20 years ago)
Author:
kil064
Message:

modify stats function to pass row number arg to C++ statistics

function when 'all=True'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r226 r241  
    181181            mask:    an optional mask specifying where the statistic
    182182                     should be determined.
    183             all:     optional flag to show all (default or .asaprc) or a
    184                      cursor selected spectrum of Beam/IF/Pol
     183            all:     if true show all (default or .asaprc) rather
     184                     that the cursor selected spectrum of Beam/IF/Pol
    185185
    186186        Example:
     
    208208                            self.setpol(k)
    209209                            if self.npol() > 1: out +=  ' Pol[%d] ' % (k)
    210                             statval = _stats(self,mask,stat)
     210                            statval = _stats(self,mask,stat,l)
    211211                            tmp.append(statval)
    212                             out += '= %3.3f\n' % (statval[l])
     212                            out += '= %3.3f\n' % (statval[0])
    213213                out += "--------------------------------------------------\n"
    214214            if self._vb:
     
    223223            j = self.getif()
    224224            k = self.getpol()
    225             statval = _stats(self,mask,stat)
     225            statval = _stats(self,mask,stat,-1)
    226226            out = ''
    227227            for l in range(self.nrow()):
Note: See TracChangeset for help on using the changeset viewer.