Commits

Takahiro Tsutsumi authored 76284592d49
Fix fro zero mask handling
No tags

code/synthesis/ImagerObjects/SynthesisDeconvolver.cc

Modified
234 234 itsLoopController.setPeakResidualNoMask( peakresnomask );
235 235 itsLoopController.setMaxPsfSidelobe( itsImages->getPSFSidelobeLevel() );
236 236
237 237 /*
238 238 Array<Double> rmss = itsImages->calcRobustRMS();
239 239 AlwaysAssert( rmss.shape()[0]>0 , AipsError);
240 240 cout << "madRMS : " << rmss << " with shape : " << rmss.shape() << endl;
241 241 //itsLoopController.setMadRMS( rmss[0] );
242 242 */
243 243
244 - if( itsMaskSum != masksum ) // i.e. mask has changed.
244 + if( itsMaskSum != masksum || masksum == 0.0 ) // i.e. mask has changed.
245 245 {
246 246 itsMaskSum = masksum;
247 247 itsLoopController.setMaskSum( masksum );
248 248 }
249 249 else // mask has not changed...
250 250 {
251 251 itsLoopController.setMaskSum( -1.0 );
252 252 }
253 253
254 254

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

Add shortcut