Commits

Pam Ford authored 9d11aba98da
Change test_plotms threshold

gcwrap/python/scripts/tests/test_plotms.py

Modified
358 358
359 359 def test_averaging_chan(self):
360 360 '''test_averaging_chan: Average channel'''
361 361 self.plotfile_jpg = os.path.join(self.outputDir, "testAveraging04.jpg")
362 362 self.removePlotfile()
363 363 time.sleep(5)
364 364 # nchan = 63
365 365 res = plotms(vis=self.ms, plotfile=self.plotfile_jpg, highres=True,
366 366 showgui=False, avgchannel='7')
367 367 self.assertTrue(res)
368 - self.checkPlotfile(self.plotfile_jpg, 180000, 220000)
368 + self.checkPlotfile(self.plotfile_jpg, 170000, 220000)
369 369 print
370 370
371 371 def test_averaging_baseline(self):
372 372 '''test_averaging_baseline: Average over baseline'''
373 373 self.plotfile_jpg = os.path.join(self.outputDir, "testAveraging05.jpg")
374 374 self.removePlotfile()
375 375 time.sleep(5)
376 376 res = plotms(vis=self.ms, plotfile=self.plotfile_jpg, highres=True,
377 377 showgui=False, avgbaseline=True)
378 378 self.assertTrue(res)
1480 1480 plotfile2_jpg = os.path.join(self.outputDir, "testIteration11_CorrLL_2.jpg")
1481 1481 # Create the plot and check that there are 27 iterations
1482 1482 res = plotms(vis=self.ms, plotfile = plotfile_jpg, exprange='all',
1483 1483 showgui=False, iteraxis='corr', overwrite=True,
1484 1484 highres=True)
1485 1485 self.assertTrue(res)
1486 1486 fileCount = self.getFilecount(self.outputDir, "testIteration11_")
1487 1487 self.assertEqual(fileCount, 2)
1488 1488 self.checkPlotfile(plotfile1_jpg, 250000)
1489 1489 self.removePlotfile(plotfile1_jpg)
1490 - self.checkPlotfile(plotfile2_jpg, 250000)
1490 + self.checkPlotfile(plotfile2_jpg, 240000)
1491 1491 self.removePlotfile(plotfile2_jpg)
1492 1492 print
1493 1493
1494 1494 # ------------------------------------------------------------------------------
1495 1495
1496 1496 class test_multi(plotms_test_base):
1497 1497 ''' tests of multiple plotms arguments '''
1498 1498
1499 1499 def setUp(self):
1500 1500 self.checkDisplay()

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

Add shortcut