Ignore:
Timestamp:
02/06/13 19:45:36 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdcal2

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added new method CalibrationManger::addApplyTable and its python interface.
The method understands what kind of apply table is given, and call
appropriate addXXX method.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CalibrationManager.cpp

    r2757 r2762  
    5858  // always plain table
    5959  target_ = new Scantable(s, Table::Plain);
     60}
     61
     62void CalibrationManager::addApplyTable(const string &c)
     63{
     64  STCalEnum::CalType caltype = STApplyTable::getCalType(c);
     65  if (caltype == STCalEnum::CalTsys) {
     66    addTsysTable(c);
     67  }
     68  else if (caltype != STCalEnum::NoType) {
     69    // should be sky table
     70    addSkyTable(c);
     71  }
     72  else {
     73    os_.origin(LogOrigin("CalibrationManager","addCalTable",WHERE));
     74    os_ << LogIO::WARN << "Table " << c << " is not ApplyTable." << LogIO::POST ;
     75  }
    6076}
    6177
Note: See TracChangeset for help on using the changeset viewer.