Commits

Takahiro Tsutsumi authored 2de6ad248b1
unit test update
No tags

gcwrap/python/scripts/tests/test_refimager.py

Modified
1545 1545 pix.fill(0.0)
1546 1546 _ia.putchunk(pix)
1547 1547 _ia.close()
1548 1548
1549 1549 ret = tclean(vis=self.msfile,imagename=self.img+'2',imsize=100,cell='10.0arcsec',niter=10,interactive=0,mask=self.img+'2.inpmask')
1550 1550
1551 1551 report=self.th.checkall(ret=ret, imexist=[self.img+'2.mask'], imval=[(self.img+'2.model',0.0,[50,50,0,0]),(self.img+'2.mask',0.0,[50,50,0,0])], stopcode=7)
1552 1552
1553 1553 self.checkfinal(report)
1554 1554
1555 + def test_mask_zeroauto(self):
1556 + """ [mask] test_mask_zeroauto : Test that an automask-generated zero mask is caught """
1557 + self.prepData('refim_point.ms')
1558 + ret = tclean(vis=self.msfile, imagename=self.img,niter=0,interactive=0,usemask='auto-thresh',maskthreshold='40.0Jy')
1559 + ret = tclean(vis=self.msfile, imagename=self.img,niter=10,interactive=0,usemask='auto-thresh',maskthreshold='40.0Jy')
1560 +
1561 + report=self.th.checkall(ret=ret, imexist=[self.img+'.mask'], imval=[(self.img+'.model',0.0,[50,50,0,0]),(self.img+'.mask',0.0,[50,50,0,0])], stopcode=7)
1562 +
1563 + self.checkfinal(report)
1564 +
1565 +
1555 1566
1556 1567 ##############################################
1557 1568 ##############################################
1558 1569
1559 1570 ##Task level tests : awproject and mosaics
1560 1571 class test_widefield(testref_base):
1561 1572
1562 1573 def test_widefield_wproj_mfs(self):
1563 1574 """ [widefield] Test_Widefield_wproj : W-Projection """
1564 1575 ### Need better test dataset for this.....

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

Add shortcut