Skip to content

Commit 9558eb6

Browse files
author
Mingyu Hsieh
committed
Fix SIImageStore for multiterm since minor cycle mtmfs does not require .sumwt. This has been fixed for the single channel.
1 parent 5bb1fc2 commit 9558eb6

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)