Changeset 558 for trunk/python


Ignore:
Timestamp:
03/11/05 10:17:38 (20 years ago)
Author:
mar637
Message:

Changed default for scanav in average_time to False

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r543 r558  
    99        one scan or comma separated  scans
    1010        mask:     an optional mask (only used for 'var' and 'tsys' weighting)
    11         scanav:   True (default) averages each scan separately
    12                   False averages all scans together,
     11        scanav:   True averages each scan separately.
     12                  False (default) averages all scans together,
    1313        weight:   Weighting scheme. 'none, 'var' (1/var(spec)
    1414                  weighted), 'tsys' (1/Tsys**2 weighted), 'tint'
     
    2121        # return the (time) averaged scan, i.e. the average of
    2222        # all correlator cycles
    23         scanav = average_time(scan)
     23        scanav = average_time(scan, scanav=True)
    2424
    2525    """
    26     scanAv = True
     26    scanAv = False
    2727    if kwargs.has_key('scanav'):
    2828       scanAv = kwargs.get('scanav')
  • trunk/python/scantable.py

    r553 r558  
    744744    #
    745745
    746     def average_time(self, mask=None, scanav=True, weight='tint'):
     746    def average_time(self, mask=None, scanav=False, weight='tint'):
    747747        """
    748748        Return the (time) average of a scan, or apply it 'insitu'.
     
    754754            mask:     an optional mask (only used for 'var' and 'tsys'
    755755                      weighting)
    756             scanav:   True (default) averages each scan separately
    757                       False averages all scans together,
     756            scanav:   True averages each scan separately
     757                      False (default) averages all scans together,
    758758            weight:   Weighting scheme. 'none', 'var' (1/var(spec)
    759759                      weighted), 'tsys' (1/Tsys**2 weighted), 'tint'
Note: See TracChangeset for help on using the changeset viewer.