Commits
483 483 | res2 = tblocal.getcol('FPARAM') |
484 484 | tblocal.close() |
485 485 | |
486 486 | tblocal.open(self.manualdefault) |
487 487 | res3 = tblocal.getcol('FPARAM') |
488 488 | tblocal.close() |
489 489 | |
490 490 | self.assertTrue(np.all(res1 == res2), msg='Results differ when preapplying with callib vs gaintable') |
491 491 | self.assertTrue(np.all(res2 == res3), msg='Results differ between paramactive [] and [True,True,False]') |
492 492 | |
493 + | |
494 + | |
495 + | class Fringefit_spw_surgery(unittest.TestCase): |
496 + | prefix = 'n08c1' |
497 + | msfile = prefix + '.ms' |
498 + | testout = f'{prefix}-spw.fj' |
499 + | |
500 + | def setUp(self): |
501 + | shutil.copytree(os.path.join(datapath, self.msfile),self.msfile) |
502 + | |
503 + | def tearDown(self): |
504 + | shutil.rmtree(self.msfile) |
505 + | if os.path.exists(self.testout): |
506 + | shutil.rmtree(self.testout) |
507 + | |
508 + | def test_spw(self): |
509 + | fringefit(vis=self.msfile, caltable=self.testout, |
510 + | spw='0:16~31,1:0~11', |
511 + | refant='0',solint='inf', |
512 + | corrdepflags=False,corrcomb='none',concatspws=True) |
513 + | tblocal.open(self.testout) |
514 + | fl=tblocal.getcol('FLAG') |
515 + | tblocal.close() |
516 + | |
517 + | |
493 518 | |
494 519 | if __name__ == '__main__': |
495 520 | unittest.main() |
521 + |