casalog.post("You defined phasecenter but not imsize. The image will cover as wide area as pointing in MS extends, but be centered at phasecenter. This could result in a strange image if your phasecenter is a part from the center of pointings", priority='WARN')
from __future__ import absolute_import
from __future__ import print_function
from casatasks.private.casa_transition import is_CASA6
from casatasks import casalog
from casatools import ms as mstool
from casatools import quanta, imager, image, table
from .cleanhelper import cleanhelper
from .imagerhelpers.imager_base import PySynthesisImager
from .imagerhelpers.input_parameters import ImagerParameters
from taskinit import casalog
from taskinit import qatool as quanta
from taskinit import imtool as imager
from taskinit import iatool as image
from taskinit import mstool
from taskinit import tbtool as table
from cleanhelper import cleanhelper
from imagerhelpers.imager_base import PySynthesisImager
from imagerhelpers.input_parameters import ImagerParameters
residual_suffix = '.residual'
weight_suffix = '.weight'
associate_suffixes = ['.psf', '.sumwt', weight_suffix, residual_suffix]
@contextlib.contextmanager
@contextlib.contextmanager
@contextlib.contextmanager
class SelectionHandler(object):
if isinstance(self.sel, str):
self.selector = self._select0
self.selector = self._select1
self.selector = self._select2