Changeset 2572


Ignore:
Timestamp:
06/16/12 10:15:36 (13 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 averageWithinSession

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STMath.cpp

    r2571 r2572  
    51335133  acc.setUserMask( cmask ) ;
    51345134
    5135   vector<string> cols( 1, "POLNO" ) ;
     5135  vector<string> cols( 3 ) ;
     5136  cols[0] = "IFNO" ;
     5137  cols[1] = "POLNO" ;
     5138  cols[2] = "BEAMNO" ;
    51365139  STIdxIterAcc iter( s, cols ) ;
    51375140
    5138   uInt nchan = s->nchan(s->getIF(0)) ;
    51395141  Table ttab = s->table() ;
    51405142  ROScalarColumn<Double> *timeCol = new ROScalarColumn<Double>( ttab, "TIME" ) ;
     
    51455147  uInt outrow = 0 ;
    51465148
    5147   Vector<uChar> flag( nchan ) ;
    5148   Vector<Bool> bflag( nchan ) ;
    5149   Vector<Float> spec( nchan ) ;
    5150   Vector<Float> tsys( nchan ) ;
    5151 
    51525149  while( !iter.pastEnd() ) {
    51535150
    51545151    Vector<uInt> rows = iter.getRows( SHARE ) ;
     5152
     5153    uInt nchan = s->nchan(s->getIF(rows[0])) ;
     5154    Vector<uChar> flag( nchan ) ;
     5155    Vector<Bool> bflag( nchan ) ;
     5156    Vector<Float> spec( nchan ) ;
     5157    Vector<Float> tsys( nchan ) ;
     5158
    51555159    uInt len = rows.nelements() ;
    51565160
Note: See TracChangeset for help on using the changeset viewer.