Changeset 2160 for branches


Ignore:
Timestamp:
05/02/11 12:48:22 (14 years ago)
Author:
Takeshi Nakazato
Message:

Merge bug fix in trunk (r2159).

Location:
branches/casa-prerelease/pre-asap
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/casa-prerelease/pre-asap

    • Property svn:mergeinfo changed
      /trunkmerged: 2159
  • branches/casa-prerelease/pre-asap/Makefile

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/SConstruct

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/apps

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/external-alma

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/external-alma/atnf/pks/pks_maths.cc

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/getsvnrev.sh

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/python

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/python/flagtoolbar.py

  • branches/casa-prerelease/pre-asap/src

  • branches/casa-prerelease/pre-asap/src/MSFiller.cpp

    r2103 r2160  
    224224    isSysCal_ = False ;
    225225  else {
    226     if ( !caltab.tableDesc().isColumn( colTcal_ ) )
     226    if ( !caltab.tableDesc().isColumn( colTcal_ ) ) {
    227227      colTcal_ = "TCAL" ;
    228     if ( !caltab.tableDesc().isColumn( colTsys_ ) )
     228      if ( !caltab.tableDesc().isColumn( colTcal_ ) )
     229        colTcal_ = "NONE" ;
     230    }
     231    if ( !caltab.tableDesc().isColumn( colTsys_ ) ) {
    229232      colTsys_ = "TSYS" ;
     233      if ( !caltab.tableDesc().isColumn( colTcal_ ) )
     234        colTsys_ = "NONE" ;
     235    }
    230236  }
    231237//   colTcal_ = "TCAL" ;
     
    643649            scInterval = scIntervalCol->getColumn() ;
    644650            delete scIntervalCol ;
    645             scTsysCol.attach( caltabsel, colTsys_ ) ;
     651            if ( colTsys_ != "NONE" )
     652              scTsysCol.attach( caltabsel, colTsys_ ) ;
    646653          }
    647654
     
    806813                // TSYS
    807814                Matrix<Float> tsys ;
    808                 if ( sysCalIdx[irow] != -1 )
     815                if ( sysCalIdx[irow] != -1 && colTsys_ != "NONE" )
    809816                  tsys = scTsysCol( irow ) ;
    810817                else
     
    813820                // TCAL_ID
    814821                Block<uInt> tcalids( npol, 0 ) ;
    815                 if ( sysCalIdx[irow] != -1 ) {
     822                if ( sysCalIdx[irow] != -1 && colTcal_ != "NONE" ) {
    816823                  tcalids = getTcalId( feedId, spwId, scTime[sysCalIdx[irow]] ) ;
    817824                }
     
    13571364  }
    13581365
     1366  if ( colTcal_ == "NONE" ) {
     1367    // add dummy row
     1368    os_ << "No TCAL column" << LogIO::POST ;
     1369    table_->tcal().table().addRow(1,True) ;
     1370    Vector<Float> defaultTcal( 1, 1.0 ) ;
     1371    ArrayColumn<Float> tcalCol( table_->tcal().table(), "TCAL" ) ;
     1372    tcalCol.put( 0, defaultTcal ) ;
     1373    return ;
     1374  }
     1375
    13591376  Table sctab = mstable_.sysCal() ;
    13601377  if ( sctab.nrow() == 0 ) {
  • branches/casa-prerelease/pre-asap/src/SConscript

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.