Changeset 2534 for branches/hpc33/src


Ignore:
Timestamp:
05/16/12 18:32:05 (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...

calibrateALMA will do nothing when input ON scantable is empty row.


File:
1 edited

Legend:

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

    r2532 r2534  
    39223922    vector< CountedPtr<Scantable> > tmp( 1, soff ) ;
    39233923    CountedPtr<Scantable> aoff = average( tmp, masks, "TINT", "SCAN" ) ;
    3924 //     cout << "elapsed time for average(): " << mathutil::gettimeofday_sec()-t2 << " sec" << endl ;
     3924//     double t3 = mathutil::gettimeofday_sec() ;
    39253925    //cout << "aoff.nrow = " << aoff->nrow() << endl ;
    39263926    s->unsetSelection() ;
     
    39283928//     t1 = mathutil::gettimeofday_sec() ;
    39293929//     cout << "elapsed time for off averaging: " << t1-t0 << " sec" << endl ;
     3930//     cout << "   elapsed time for average(): " << t3-t2 << " sec" << endl ;
    39303931   
    39313932    // on scan
     
    51125113                            CountedPtr<Scantable>& off )
    51135114{
     5115  if ( on->nrow() == 0 )
     5116    return ;
    51145117  //   string reftime = on->getTime( index ) ;
    51155118  ROScalarColumn<Double> timeCol( off->table(), "TIME" ) ;
     
    51485151                            Vector<uInt>& rows )
    51495152{
     5153  // if rows is empty, just return
     5154  if ( rows.nelements() == 0 )
     5155    return ;
    51505156//   string reftime = on->getTime( index ) ;
    51515157  ROScalarColumn<Double> timeCol( off->table(), "TIME" ) ;
Note: See TracChangeset for help on using the changeset viewer.