Commits

Takeshi Nakazato authored 35bd80880ff
CAS-13780 documentation fix (D211)

casatasks/tests/tasks/test_task_sdcal.py

Modified
47 47 partition(vis=vis, outputvis=outputvis, separationaxis=separationaxis)
48 48 if os.path.exists(outputvis):
49 49 yield outputvis
50 50 else:
51 51 yield None
52 52 finally:
53 53 os.system('rm -rf {0}*'.format(outputvis))
54 54
55 55
56 56 class sdcal_test(unittest.TestCase):
57 -
58 57 """
59 58 Unit test for task sdcal.
60 59
61 60 The list of tests:
62 61 test00 --- default parameters (raises an error)
63 62 test01 --- spwmap comprising list
64 63 test02 --- spwmap comprising dictionary
65 64 test03 --- spwmap comprising others
66 65 test04 --- there is no infile
67 66 test05
1681 1680
1682 1681 def interpolate(self, t, tau):
1683 1682 dt = self.time - t
1684 1683 index = abs(dt).argmin()
1685 1684 weightscale = self.weightscale_nearest(tau, self.exposure[index])
1686 1685 ref, refflag = self.finterp(self.data[:, :, index].copy(), self.flag[:, :, index].copy())
1687 1686 return ref, refflag, weightscale
1688 1687
1689 1688
1690 1689 class sdcal_test_apply(sdcal_test_base):
1691 -
1692 1690 """
1693 1691 Unit test for task sdcal (apply tables).
1694 1692
1695 1693 The list of tests:
1696 1694 test_apply_sky00 --- empty applytable
1697 1695 test_apply_sky01 --- empty applytable (list ver.)
1698 1696 test_apply_sky02 --- empty applytable list
1699 1697 test_apply_sky03 --- unexisting applytable
1700 1698 test_apply_sky04 --- unexisting applytable (list ver.)
1701 1699 test_apply_sky05 --- invalid selection (empty selection result)

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

Add shortcut