Changeset 3023 for trunk/src/Scantable.h


Ignore:
Timestamp:
02/09/15 15:48:01 (9 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (Bug fixes)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: Added a function Scantable::nValidMask(const std::vector<bool>& mask);

Test Programs:

Put in Release Notes: Yes

Module(s): scantable, sdbaseline

Description:

  • Added a new function Scantable::nValidMask(const std::vector<bool>& mask) that returns the number of elements in true in the input bool vector, mask.
  • Fixed a bug in Scantable::isAllChannelsFlagged that fails to detect completely flagged channels when BDF flag and the other flag is mixed in a spectrum.
  • Fixed a bug in *Baseline functions that caused an error of baseline subtraction in case there is a spectrum of which all channels are flagged.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r2969 r3023  
    724724
    725725  std::vector<uint> getNumbers(const casa::ScalarColumn<casa::uInt>& col) const;
     726
     727  /**
     728   * Returns a number of elements with "true" in a bool vector.
     729   * @param[in] mask (boolean vector)
     730   * @return the numerb of elements in true
     731   */
     732  std::size_t nValidMask(const std::vector<bool>& mask);
    726733
    727734  static const casa::uInt version_ = 4;
Note: See TracChangeset for help on using the changeset viewer.