Commits

Akeem Wells authored 07fa7237c37
Update to test variable assignment

casatools/tests/tools/simulator/test_tool_simulator.py

Modified
40 40 _me = measures()
41 41
42 42 # Location of input data
43 43 datapath = ctsys.resolve('unittest/simulator/')
44 44 refpath = ctsys.resolve('unittest/simulator/smtool_reference/')
45 45
46 46 class sm_settrop_test(unittest.TestCase):
47 47 """
48 48 """
49 49
50 - vis_file = 'settrop_split_ant_spw.ms'
51 - vis_copy = 'settrop_split_ant_spw_copy.ms'
52 - res_table = 'settrop_table'
53 -
54 50 def setUp(self):
51 + self.vis_file = 'settrop_split_ant_spw.ms'
52 + self.vis_copy = 'settrop_split_ant_spw_copy.ms'
53 + self.res_table = 'settrop_table'
55 54 if os.path.exists(self.vis_copy):
56 55 shutil.rmtree(self.vis_copy)
57 56 shutil.copytree(os.path.join(datapath,self.vis_file), self.vis_copy)
58 57
59 58 def tearDown(self):
60 59 if os.path.exists(self.vis_copy):
61 60 shutil.rmtree(self.vis_copy)
62 61 if os.path.exists(self.res_table):
63 62 shutil.rmtree(self.res_table)
64 63
65 - @classmethod
66 - def tearDownClass(cls):
67 - pass
68 -
69 64 def test_smsettrop(self):
70 65 """ """
71 66 _sm.openfromms(self.vis_copy)
72 67 # This call exercises the new parameter CAS-13194
73 68 _sm.settrop(mode='screen', table=self.res_table,pwv=3.0,deltapwv=0.15,
74 69 beta=1.1,windspeed=7.0,simint=0.1)
75 70 # Should be no steps in phase vs time table
76 71 # Corrected data which contains corrupted vis
77 72 _sm.corrupt()
78 73 _sm.done()

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

Add shortcut