Commits

Ville Suoranta authored 7ef138c9cd9 Merge
Merge pull request #902 in CASA/casa from CAS-12346 to master

* commit 'ad4cd43ba125a266469c65d1a17a86ca486f4696': CAS-12346 update test_stretch so it doesn't intermittently fail
No tags

gcwrap/python/scripts/tests/test_imcollapse.py

Modified
467 467 self.assertTrue((expec == got).all())
468 468
469 469 def test_stretch(self):
470 470 """ imcollapse: Test stretch parameter"""
471 471 yy = iatool()
472 472 yy.open(good_image)
473 473 mycs = yy.coordsys().torecord()
474 474 yy.done()
475 475 maskim = "ymask"
476 476 yy.fromshape(maskim,[3,3,1,1])
477 - yy.addnoise()
477 + bb = yy.getchunk()
478 + bb = bb + 1
479 + bb[1,1] = -1
480 + yy.putchunk(bb)
478 481 yy.setcoordsys(mycs)
479 482 yy.done()
480 483 for i in [0,1]:
481 484 if i == 1:
482 485 yy = run_collapse(
483 486 good_image, "mean", 0, "", "", "", "",
484 487 "", maskim + ">0", False, stretch=True
485 488 )
486 489 self.assertTrue(type(yy) == type(ia))
487 490 yy.done()

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

Add shortcut