casalog.post("Please check the casa log file for a message confirming that the model was saved after the last major cycle. If it doesn't exist, please re-run tclean with niter=0,calcres=False,calcpsf=False in order to trigger a 'predict model' step that obeys the savemodel parameter.","WARN","task_tclean")
from __future__ import absolute_import
from __future__ import print_function
from casatasks.private.casa_transition import *
from casatasks import casalog
from casatasks.private.imagerhelpers.imager_base import PySynthesisImager
from casatasks.private.imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
from casatasks.private.imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
from casatasks.private.imagerhelpers.input_parameters import ImagerParameters
from .sdint_helper import *
from imagerhelpers.imager_base import PySynthesisImager
from imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
from imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
from imagerhelpers.input_parameters import ImagerParameters
from sdint_helper import *
sdintlib = SDINT_helper()
def setup_imagerObj(parallel, pcube, paramList=None):
defaultconstructor = False
if not isinstance(paramList, ImagerParameters):
raise RuntimeError("Internal Error: invalid paramList")
defaultconstructor = True
if parallel==False and pcube==False:
return PySynthesisImager(params=paramList)
return PyParallelContSynthesisImager
return PyParallelContSynthesisImager(params=paramList)