Commits

Neal Schweighart authored f916f329def
fixed error with test helper missing param

casatasks/tests/tasks/test_task_appendantab.py

Modified
94 94
95 95 def test_appendAll(self):
96 96 """ Test appending both the GAIN_CURVE and SYSCAL tables """
97 97 appendantab(vis=data_copy, outvis=append_data, antab=evn_antab, overwrite=False, append_tsys=True, append_gc=True)
98 98
99 99 tb.open(append_data+"/SYSCAL")
100 100 print(tb.getcol("TSYS"))
101 101 tb.close()
102 102
103 103 # compare to ref syscal and gain_curve table
104 - self.assertTrue(th.compTables(append_data + "/SYSCAL", evn_ref + "/SYSCAL", [], mode='absolute'))
104 + self.assertTrue(th.compTables(append_data + "/SYSCAL", evn_ref + "/SYSCAL", [], mode='absolute', excludecols=''))
105 105 self.assertTrue(compareGains(append_data, evn_ref))
106 - #self.assertTrue(th.compTables(append_data + "/GAIN_CURVE", evn_ref + "/GAIN_CURVE", [], mode='absolute'))
107 106
108 107 def test_appendGainCurve(self):
109 108 """ Test appending just the GAIN_CURVE table """
110 109 appendantab(vis=data_copy, outvis=append_data, antab=evn_antab, overwrite=False, append_tsys=False, append_gc=True)
111 110
112 111 # make sure SYSCAL wasn't created
113 112 self.assertFalse(os.path.exists(append_data + "/SYSCAL"))
114 113 self.assertTrue(compareGains(append_data, evn_ref))
115 114
116 115 def test_appendSysCal(self):
117 116 """ Test appending just the SYSCAL table """
118 117 appendantab(vis=data_copy, outvis=append_data, antab=evn_antab, overwrite=False, append_tsys=True, append_gc=False)
119 118
120 119 # make sure GAIN_CURVE wasn't created
121 120 self.assertFalse(os.path.exists(append_data + "/GAIN_CURVE"))
122 121
123 122 # compare to ref gain_curve table
124 - self.assertTrue(th.compTables(append_data + "/SYSCAL", evn_ref + "/SYSCAL", [], mode='absolute'))
123 + self.assertTrue(th.compTables(append_data + "/SYSCAL", evn_ref + "/SYSCAL", [], mode='absolute', excludecols=''))
125 124
126 125 def test_Overwrite(self):
127 126
128 127 # Don't overwrite the data on the first run
129 128 appendantab(vis=data_copy, outvis=append_data, antab=evn_antab, overwrite=False, append_tsys=True, append_gc=False)
130 129
131 130 # Remove subtables so they are re-written in the overwrite
132 131 shutil.rmtree(append_data + "/SYSCAL")
133 132
134 133 # Second run with overwrite should create subtables

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

Add shortcut