Changeset 3039 for trunk/src


Ignore:
Timestamp:
07/07/15 19:11:40 (9 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (a fix to bug reported by Malte)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): baseline subtraction in scantable module

Description: Proper handling of mask=[] (default) in Scantable::getCompositeChanMask


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r3032 r3039  
    50695069{
    50705070  if (isAllChannelsFlagged(whichrow)) {//all channels flagged
    5071     std::vector<bool> res_mask(inMask.size(),false);
     5071    std::vector<bool> res_mask(nchan(getIF(whichrow)),false);
    50725072    return res_mask;
    5073   } else if (nValidMask(inMask)==0){ //no valid mask channels
     5073  } else if (inMask.size() != 0 && nValidMask(inMask)==0){ //no valid mask channels
    50745074    std::vector<bool> res_mask(inMask);
    50755075    return res_mask;
Note: See TracChangeset for help on using the changeset viewer.