Ignore:
Timestamp:
04/23/12 16:43:34 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on averageall mode: fixed a bug that cannot handle spectral
Tsys when averaging.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2463 r2475  
    18801880  Vector<Float> oldspec = specCol_( irow ) ;
    18811881  Vector<uChar> oldflag = flagsCol_( irow ) ;
     1882  Vector<Float> oldtsys = tsysCol_( irow ) ;
    18821883  uInt newsize = nmax - nmin + 1 ;
    1883   specCol_.put( irow, oldspec( Slice( nmin, newsize, 1 ) ) ) ;
    1884   flagsCol_.put( irow, oldflag( Slice( nmin, newsize, 1 ) ) ) ;
     1884  Slice slice( nmin, newsize, 1 ) ;
     1885  specCol_.put( irow, oldspec( slice ) ) ;
     1886  flagsCol_.put( irow, oldflag( slice ) ) ;
     1887  if ( oldspec.size() == oldtsys.size() )
     1888    tsysCol_.put( irow, oldtsys( slice ) ) ;
    18851889
    18861890  return ;
Note: See TracChangeset for help on using the changeset viewer.