Changeset 1352


Ignore:
Timestamp:
04/26/07 14:52:32 (17 years ago)
Author:
mar637
Message:

importatnt fix to the output mask of this object. This is now generated from n_ and masks every channel with count 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/RowAccumulator.cpp

    r1333 r1352  
    137137casa::Vector< casa::Bool > RowAccumulator::getMask( ) const
    138138{
    139   // if no elements accumulated the mask is all True
    140   // we have to return everything False
    141   if (max(n_) < 1.0) return !spectrum_.getMask();
    142   return spectrum_.getMask();
     139  // Return the "total" mask - False where no points have been accumulated.
     140  return (n_.getArray() > Float(0.0));
    143141}
    144142
Note: See TracChangeset for help on using the changeset viewer.