Changeset 2427 for trunk/src


Ignore:
Timestamp:
03/08/12 16:57:56 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-3758)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: interactive test with

Put in Release Notes: No

Module(s): sdbaseline, sdfit, sdstat

Description:

Interactivemask module looks for the number of channels in the first
IF to create mask instead of the number recorded in scantable header.
Changed minimum number of channels required from 2 to 1 in
scantable.get_masklist, scantable.get_mask_indices,
Scantable::getMaskRangeList, and Scantable::getMaskEdgeIndices,
because it is not mandatory to have multiple channels in these functions.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2411 r2427  
    35503550std::string Scantable::getMaskRangeList(const std::vector<bool>& mask, int whichrow, const casa::String& coordInfo, bool hasSameNchan, bool verbose)
    35513551{
    3552   if (mask.size() < 2) {
    3553     throw(AipsError("The mask elements should be > 1"));
     3552  if (mask.size() <= 0) {
     3553    throw(AipsError("The mask elements should be > 0"));
    35543554  }
    35553555  int IF = getIF(whichrow);
     
    35843584std::vector<int> Scantable::getMaskEdgeIndices(const std::vector<bool>& mask)
    35853585{
    3586   if (mask.size() < 2) {
    3587     throw(AipsError("The mask elements should be > 1"));
     3586  if (mask.size() <= 0) {
     3587    throw(AipsError("The mask elements should be > 0"));
    35883588  }
    35893589
Note: See TracChangeset for help on using the changeset viewer.