Commits

David Mehringer authored 8eba44e0f4a
bug fix in setting flags.

code/mstransform/TVI/StatWtTVI.cc

Modified
259 259 blcb.spw = spw;
260 260 auto bins = _chanBins.find(spw)->second;
261 261 auto biter = bins.begin();
262 262 auto bend = bins.end();
263 263 blc[2] = i;
264 264 trc[2] = i;
265 265 for (; biter!=bend; ++biter) {
266 266 blc[1] = biter->start;
267 267 trc[1] = biter->end;
268 268 blcb.chanBin = *biter;
269 - flagCube(blc, trc) = _weights.find(blcb)->second == 0;
269 + if (_weights.find(blcb)->second == 0) {
270 + flagCube(blc, trc) = True;
271 + }
270 272 }
271 273 }
272 274 _newFlag = flagCube.copy();
273 275 }
274 276
275 277 void StatWtTVI::flagRow (Vector<Bool>& flagRow) const {
276 278 ThrowIf(! _weightsComputed, "Weights have not been computed yet");
277 279 if (! _newFlagRow.empty()) {
278 280 flagRow = _newFlagRow.copy();
279 281 return;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut