Changeset 2295


Ignore:
Timestamp:
09/12/11 19:53:07 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: sd regressions, test_sdsave

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix: support the case that TCAL_SPECTRUM exists but empty.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2292 r2295  
    272272    isWeather = False ;
    273273    isSysCal = False ;
     274    isTcal = False ;
    274275    cycleNo = 0 ;
    275276    numSysCalRow = 0 ;
     
    687688  {
    688689    isSysCal = True ;
     690    isTcal = True ;
    689691    syscalRecord = r ;
     692    if ( syscalRecord.nfields() == 0 )
     693      isTcal = False ;
    690694
    691695    const TableDesc &desc = sctab.tableDesc() ;
     
    12081212  {
    12091213    // return 0 if no SysCal table
    1210     if ( !isSysCal ) {
     1214    if ( !isSysCal or !isTcal ) {
    12111215      return Block<uInt>( 4, 0 ) ;
    12121216    }
     
    12661270  Vector<Double> weatherInterval;
    12671271  Bool isSysCal;
     1272  Bool isTcal;
    12681273  Record syscalRecord;
    12691274  //map< String,Vector<uInt> > syscalRecord;
Note: See TracChangeset for help on using the changeset viewer.