Skip to content

Commit c4f69fc

Browse files
committed
Merge branch 'mtfixsumwt' into 'main'
Fix SIImageStoreMultiterm since minor cycle mtmfs does not require sumwt See merge request ardg/libra!106
2 parents 5bb1fc2 + 9558eb6 commit c4f69fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/synthesis/ImagerObjects/SIImageStoreMultiTerm.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ namespace casa { //# NAMESPACE CASA - BEGIN
262262
}
263263
else
264264
{
265-
if(!ignoresumwt)
266-
{throw( AipsError( "Multi-term SumWt does not exist. Please create PSFs or Residuals." ) );}
267-
else
268-
{
265+
//if(!ignoresumwt) // .sumwt image not required for just the minor cycle (aka hummbee or maybe task deconvolve)
266+
//{throw( AipsError( "Multi-term SumWt does not exist. Please create PSFs or Residuals." ) );}
267+
//else
268+
//{
269269
os << "SumWt.ttx do not exist. Proceeding only with PSFs" << LogIO::POST;
270270
std::shared_ptr<ImageInterface<Float> > imptr;
271-
// imptr.reset( new PagedImage<Float> (itsImageName+String(".sumwt.tt0")) );
271+
272272
if( doesImageExist(itsImageName+String(".residual.tt0")) )
273273
{buildImage( imptr, (itsImageName+String(".residual.tt0")) );}
274274
else
@@ -279,7 +279,7 @@ namespace casa { //# NAMESPACE CASA - BEGIN
279279
itsUseWeight = False;
280280
itsCoordSys = imptr->coordinates();
281281
itsMiscInfo=imptr->miscInfo();
282-
}
282+
//}
283283
}
284284
}// if psf0 or res0 exist
285285

0 commit comments

Comments
 (0)