Source
ret=tclean(vis="refim_mawproject.ms",field="*",spw="1",datacolumn="corrected",imagename=self.img,imsize=512,cell="10.0arcsec",phasecenter="J2000 19:59:28.500 +40.44.01.50",stokes="I",specmode="mfs",gridder="mosaic",psfphasecenter="J2000 19:59:28.520 +40.44.01.51",vptable="",pblimit=0.3,normtype="flatnoise",deconvolver="hogbom",restoration=True,weighting="natural", niter=30,gain=0.1, usemask="user",mask="",restart=True,savemodel="none",calcres=True,calcpsf=True, parallel=self.parallel)
#########################################################################
# test_task_tclean.py
#
# Copyright (C) 2018
# Associated Universities, Inc. Washington DC, USA.
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
# License for more details.
#
# Based on the requirements listed in casadocs found here:
# https://casadocs.readthedocs.io/en/stable/api/tt/casatasks.imaging.tclean.html
#
# Each of the following categories (classes) has a set of tests within it.
#
# test_onefield # basic tests, deconvolution algorithms
# test_iterbot # iteration control options for mfs and cube
# test_multifield # multiple fields of same type and with different shapes/deconvolvers/gridders
# test_stokes # multiple stokes planes, imaging with flagged correlations..
# test_cube # all things cube. Spectral frame setup, handling empty channels, etc
# test_widefield # facets, wprojection, imagemosaic, mosaicft, awproject
# test_mask # input mask options : regridding, mask file, automasking, etc
# test_modelvis # saving models (column/otf), using starting models, predict-only (setjy)
# test_ephemeris # ephemeris tests for gridder standard and mosaic, mode mfs and cubesource
#
# To run the tests with python3 or casa in the command line
#
# ./casa -c ./test_tclean.py
# ./python3 ./test_tclean.py
# ./casa -c ./casa6/casatestutils/runtest.py -h # to see all options
# ./casa -c ./casa6/casatestutils/runtest.py ./test_tclean.py # run the local test script
# ./casa -c ./casa6/casatestutils/runtest.py ./test_tclean.py
# To run from within a casa 6 session:
#
# from casatestutils import runtest
# runtest.run(['test_tclean']) # pull test script from git trunk
# runtest.run(['/path-to-test/test_tclean.py']) # run a local test script
# runtest.run(['test_tclean[test_onefield_clark,test_onefield_hogbom]']) # pull multiple test cases from git trunk
# runtest.run(['test_tclean.py[test_onefield_clark,test_onefield_hogbom]']) # run multiple test cases from local test script
# See documentation for runtest.py in README.md of casatestutils
# To see the full list of tests : grep "\"\"\" \[" test_tclean.py
#
# These tests need data stored in casatestdata/unittest/tclean
# The datasets are symliked to the above directory. If using cp to copy them locally,
# Use cp -RH
#
# For a developer build, to get the datasets locally
#
# --- Get the test data repo : svn co https://svn.cv.nrao.edu/svn/casatestdata casatestdata
# --- Use ~/.casa/config.py to point to the casatestdata
# ########################################################################
# SKIPPED TESTS
# More tests were added to skip (as of 2019,04,26)
#
# (as of 2019.02.05 - Seven tests total)
# The following tests are currently skipped as the supports of the particular
# modes are not available in parallel mode yet
# =>
# test_multifield_both_cube_diffshape
# test_multifield_cube_mfs
# test_multifield_cube_mtmfs
#
# The following tests in pricipal should be working but curently broken
# for parallel until fixes to test or code are properly made.
# => test_multifield_facets_mfs
# test_multifield_facets_mtmfs
#
# Added to skip at least for 5.5
# test_cube_chanchunks
# test_cube_chanchunks_savemodel (possible race conditions)
# test_modelvis_2 (possible race conditions)
# test_modelvis_3 (possible race conditions)
# test_modelvis_5 (possible race conditions)
# test_modelvis_6 (possible race conditions)
# test_modelvis_7 (possible race conditions)
# test_modelvis_8 (possible race conditions)
# test_modelvis_9 (possible race conditions)
# test_modelvis_10 (possible race conditions)
# test_modelvis_11 (possible race conditions)
# test_startmodel_with_mask_mfs(possible race conditions)
# test_startmodel_with_mask_mtmfs(possible race conditions)
# Ressurected from skipping after some fixes
# test_mask_5