Commits
Sandra Castro authored 9175676946c
66 66 | class Test_vla_users_continuum(unittest.TestCase): |
67 67 | |
68 68 | def setUp(self): |
69 69 | self._mytb = tbtool() |
70 70 | self.refversion='6.2.0.124' |
71 71 | self.sdmfile = 'TDEM0001_sb1218006_1.55310.33439732639' |
72 72 | os.symlink(data_path+self.sdmfile, self.sdmfile) |
73 73 | self.maskfile = '3c391_clean_mask.crtf' |
74 74 | # os.symlink(data_path+self.maskfile, self.maskfile) |
75 75 | self.writeMask() |
76 + | # Control if running in parallel with mpicasa |
76 77 | self.parallel = False |
78 + | # Control if creating Multi-MS with mpicasa |
79 + | self.mms = False |
77 80 | if ParallelTaskHelper.isMPIEnabled(): |
81 + | casalog.post('MPI is enabled. Will run in parallel using Multi-MS for calibration and tclean') |
78 82 | self.parallel = True |
83 + | self.mms = True |
79 84 | |
80 85 | def tearDown(self): |
81 86 | generate_weblog("vla_users_continuum_from_SDM",test_dict) |
82 87 | self._mytb.done() |
83 88 | self.delData() |
84 89 | |
85 90 | def writeMask(self): |
86 91 | with open(self.maskfile,'w') as out1: |
87 92 | out1.write(clean_mask) |
88 93 | |
99 104 | """VLA Stakeholders tests: Based on 3C 391 CASAguide Continuum Tutorial""" |
100 105 | sdmname = self.sdmfile |
101 106 | msname = '3c391_ctm_mosaic_10s_spw0.ms' |
102 107 | msname_split = '3c391_ctm_mosaic_spw0.ms' |
103 108 | |
104 109 | test_name = self._testMethodName |
105 110 | report=[] |
106 111 | |
107 112 | ## Data Import |
108 113 | importasdm(asdm=sdmname, |
109 - | vis=sdmname+'.ms', createmms=False, |
114 + | vis=sdmname+'.ms', createmms=self.mms, |
110 115 | ocorr_mode='co', asis='Receiver CalAtmosphere', |
111 116 | process_caldevice=True, process_pointing=True, savecmds=True, |
112 117 | outfile=sdmname+'.flagonline.txt', |
113 118 | overwrite=False, bdfflags=False, with_pointing_correction=True) |
114 119 | |
115 120 | add_to_dict(self, output = test_dict, dataset = sdmname+'.ms') |
116 121 | |
117 122 | flagdata(vis=sdmname+'.ms', mode='list', |
118 123 | inpfile=sdmname+'.flagonline.txt', |
119 124 | tbuff=0.0, action='apply', flagbackup=False, savepars=False) |