Ignore:
Timestamp:
01/29/13 19:21:55 (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: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Various fixes to avoid segmentation fault, and a few updates on
python interface.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STApplyCal.cpp

    r2742 r2750  
    168168{
    169169  os_.origin(LogOrigin("STApplyCal","apply",WHERE));
     170 
     171  assert(!target_.null());
     172
    170173  // calibrator
    171174  if (caltype_ == STCalEnum::CalPSAlma)
     
    186189
    187190  // working data
    188   if (insitu)
     191  if (insitu) {
     192    os_.origin(LogOrigin("STApplyCal","apply",WHERE));
     193    os_ << "Overwrite input scantable" << LogIO::POST;
    189194    work_ = target_;
    190   else
     195  }
     196  else {
     197    os_.origin(LogOrigin("STApplyCal","apply",WHERE));
     198    os_ << "Create output scantable from input" << LogIO::POST;
    191199    work_ = new Scantable(*target_, false);
     200  }
    192201
    193202  //os_ << "work_->nrow()=" << work_->nrow() << LogIO::POST;
     
    219228    Vector<uInt> rows = iter->getRows(SHARE);
    220229    if (rows.nelements() > 0)
    221       doapply(ids[0], ids[2], ids[1], rows, skycalList);
     230      doapply(ids[0], ids[2], ids[1], rows, skycalList, filltsys);
    222231    iter->next();
    223232  }
Note: See TracChangeset for help on using the changeset viewer.