Commits

Neal Schweighart authored eff92d4734e
updated test case for ant pos time limit

casatasks/tests/tasks/test_task_gencal.py

Modified
195 195 # Mechanical test if time limit functions as expected, very short limit
196 196 gencal(vis=self.msfile2,
197 197 caltable=self.caltable,
198 198 caltype='antpos',
199 199 ant_pos_time_limit=400)
200 200
201 201 _tb.open(self.caltable)
202 202 res = np.mean(_tb.getcol('FPARAM'))
203 203 _tb.close()
204 204
205 - self.assertTrue(np.isclose(res, 0.0, atol=1e-6))
205 + self.assertTrue(np.isclose(res, -1.2345658040341035e-06, atol=1e-5))
206 206
207 207 shutil.rmtree(self.caltable)
208 208
209 209 # Test again with no time limit/ ant_pos_time_limit = 0
210 210 gencal(vis=self.msfile2,
211 211 caltable=self.caltable,
212 212 caltype='antpos',
213 213 ant_pos_time_limit=0)
214 214
215 215 _tb.open(self.caltable)
216 216 res = np.mean(_tb.getcol('FPARAM'))
217 217 _tb.close()
218 218
219 - self.assertTrue(np.isclose(res, -5.185e-5, atol=1e-6))
219 + self.assertTrue(np.isclose(res, -5.308641580703818e-05, atol=1e-5))
220 220
221 221
222 222
223 223 class test_gencal_antpos_alma(unittest.TestCase):
224 224 """Tests the automatic generation of antenna position corrections for ALMA.
225 225
226 226 New REST web service:
227 227 https://bitbucket.sco.alma.cl/projects/ALMA/repos/almasw/browse/CONTROL-SERVICES/PositionsService
228 228
229 229

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

Add shortcut