Commits

Ville Suoranta authored dfc3aed8d07 Merge
Merge pull request #514 in CASA/casa from hotfix/CAS-11417 to master

* commit 'c6a747a117afe4bda355d54a41a97cf460599457': Fixed typos in the input file names for the mask unit tests
No tags

gcwrap/python/scripts/tests/test_refimager.py

Modified
2011 2011 ])
2012 2012
2013 2013 self.checkfinal(report)
2014 2014
2015 2015 def test_mask_expand_cubestokesImask_to_cube_IQUV(self):
2016 2016 """ [mask] test_mask_expand_contstokesIQUVmask_to_cube_IQUV : Test for expanding
2017 2017 input cube Stokes I mask to cube (of the same spectral coordinates) IQUV imaging """
2018 2018 # extending to all channels and preserving mask of each stokes
2019 2019 self.prepData('refim_point_linRL.ms')
2020 2020 # input mask will different for different stokes plane
2021 - self.prepInputmask('refim_cube_stokesI_input.mask')
2021 + self.prepInputmask('refim_cube_StokesI_input.mask')
2022 2022 ret = tclean(vis=self.msfile,
2023 2023 imagename=self.img, specmode="cube", imsize=100, cell='8.0arcsec',
2024 2024 niter=10,interactive=0,interpolation='nearest', stokes='IQUV',
2025 2025 usemask='user', mask=self.maskname)
2026 2026
2027 2027 report=self.th.checkall(ret=ret, imexist=[self.img+'.mask'],
2028 2028 imval=[(self.img+'.mask',1.0,[50,50,0,0]),
2029 2029 (self.img+'.mask',1.0,[50,50,0,1]),
2030 2030 (self.img+'.mask',1.0,[50,50,1,0]),
2031 2031 (self.img+'.mask',1.0,[50,50,1,2]),
2041 2041 ])
2042 2042
2043 2043 self.checkfinal(report)
2044 2044
2045 2045 def test_mask_expand_cubestokesImask_nodegen_to_cube_IQUV(self):
2046 2046 """ [mask] test_mask_expand_contstokesIQUVmask_nodegen_to_cube_IQUV : Test for expanding
2047 2047 input cube Stokes I mask with its degenerate axes removed to cube (of the same spectral coordinates) IQUV imaging """
2048 2048 # extending to all channels and preserving mask of each stokes
2049 2049 self.prepData('refim_point_linRL.ms')
2050 2050 # input mask will different for different stokes plane
2051 - self.prepInputmask('refim_cube_stokesI_input.mask')
2051 + self.prepInputmask('refim_cube_StokesI_input.mask')
2052 2052 imsubimage(self.maskname, outfile=self.maskname+"_dropdeg",dropdeg=True);
2053 2053 ret = tclean(vis=self.msfile,
2054 2054 imagename=self.img, specmode="cube", imsize=100, cell='8.0arcsec',
2055 2055 niter=10,interactive=0,interpolation='nearest', stokes='IQUV',
2056 2056 usemask='user', mask=self.maskname+'_dropdeg')
2057 2057
2058 2058 report=self.th.checkall(ret=ret, imexist=[self.img+'.mask'],
2059 2059 imval=[(self.img+'.mask',1.0,[50,50,0,0]),
2060 2060 (self.img+'.mask',1.0,[50,50,0,1]),
2061 2061 (self.img+'.mask',1.0,[50,50,1,0]),

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut