Commits
321 321 | tbt_local.open(self.msfile+'/MODEL_DATA') |
322 322 | except Exception as instance: |
323 323 | print('*** Expected exception. \"{0}\"'.format(instance)) |
324 324 | finally: |
325 325 | tbt_local.close() |
326 326 | |
327 327 | inpms = 'ngc4826Jy.ms' |
328 328 | shutil.copytree(self.msfile, inpms) |
329 329 | |
330 330 | # First, run setjy to create the SOURCE_MODEL column |
331 - | setjy(vis=inpms,field='0',fluxdensity=[23.0,0.,0.,0.],standard='manual', scalebychan=False) |
331 + | setjy(vis=inpms,field='0',fluxdensity=[23.0,0.,0.,0.],standard='manual', scalebychan=False, usescratch=False) |
332 332 | |
333 333 | # Now create an MMS from it. The SOURCE_MODEL column should be there too |
334 334 | partition(vis=inpms,outputvis=self.mmsfile, observation='1',spw='1', |
335 335 | scan='1,2,3', disableparallel=True, flagbackup=False) |
336 336 | |
337 337 | print('Check the SOURCE_MODEL columns....') |
338 338 | tbt_local.open(inpms+'/SOURCE') |
339 339 | msdict = tbt_local.getcell('SOURCE_MODEL', 0) |
340 340 | tbt_local.close() |
341 341 | |