Commits

Sandra Castro authored b8c0170ffeb
Fixed test_param inside test_fringefit of CASA 5, to take a list when

itertools returns a tuple.
No tags

casa5/gcwrap/python/scripts/tests/test_fringefit.py

Modified
99 99 self.assertTrue(flag[4, 0, 3])
100 100 self.assertTrue(flag[4, 0, 4])
101 101 def test_param(self):
102 102 sbdcal = self.prefix + '-2.sbdcal'
103 103 # We make a triple cartesian product of booleans
104 104 # to test all possible paramactive values
105 105 eps = 1e-20
106 106 refant = 0
107 107 refant_s = str(refant)
108 108 for pactive in itertools.product(*3*[[False, True]]):
109 - fringefit(vis=self.msfile, paramactive=pactive, caltable=sbdcal, refant=refant_s)
109 + fringefit(vis=self.msfile, paramactive=list(pactive), caltable=sbdcal, refant=refant_s)
110 110 tblocal.open(sbdcal)
111 111 fparam = tblocal.getcol('FPARAM')
112 112 flag = tblocal.getcol('FLAG')
113 113 tblocal.close()
114 114 param_names = ['delay', 'rate', 'dispersivity']
115 115 if VERBOSE:
116 116 print(pactive, file=sys.stderr)
117 117 # Loop over parameters
118 118 for i in range(2):
119 119 # Loop over stations; it seems like station 2 is the one with non zero results

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

Add shortcut