Changeset 3007


Ignore:
Timestamp:
10/16/14 20:06:50 (10 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-6582

Ready for Test: Yes

Interface Changes: Yes/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...

Fix for asap unit test failure.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/RowAccumulator.cpp

    r2986 r3007  
    207207  Float totalWeight = 1.0;
    208208  Vector<Bool> m = data.getMask();
    209   Float tsysWeight = addTsys(tsys, inverseMask);
    210   Float intervalWeight = addInterval(interval, inverseMask);
    211   addTime(time, inverseMask);
    212209  if (!allEQ(m, False)) {  // only add these if not everything masked
    213     totalWeight *= tsysWeight;
    214     totalWeight *= intervalWeight;
     210    totalWeight *= addTsys(tsys, inverseMask);
     211    totalWeight *= addInterval(interval, inverseMask);
     212    addTime(time, inverseMask);
    215213
    216214    if (weightType_ == W_VAR) {
     
    321319  weightSum_.setData(w, Vector<Bool>(w.nelements(), True));
    322320
    323   tsysSum_ = tsysSumNoMask_;
    324   intervalSum_ = intervalSumNoMask_;
    325 }
     321  if (allEQ(tsysSum_, 0.0f))
     322    tsysSum_ = tsysSumNoMask_;
     323  if (intervalSum_ == 0.0)
     324    intervalSum_ = intervalSumNoMask_;
     325}
Note: See TracChangeset for help on using the changeset viewer.