Commits

consistent error (except) handling, task sdcal ->CASA6, CAS-13125, CAS-13018
No tags

casatasks/src/tasks/task_sdcal.py

Modified
164 164 raise ValueError('Too many edge points. fraction must be < 0.5.')
165 165 # Setup calibrator
166 166 cb.selectvis(spw=spw, scan=scan, field=field, intent=intent)
167 167 cb.setsolve(type=cpp_calmode[calmode], table=outfile, fraction=fraction_numeric, numedge=noff)
168 168 # Compute calibration table
169 169 cb.solve()
170 170
171 171 except UserWarning as instance:
172 172 print('*** Warning *** %s' % instance)
173 173
174 - except Exception as instance:
175 - print('*** Error *** %s' % instance)
176 - raise
177 -
178 174 finally:
179 175 cb.close()
180 176
181 177 def inspect_caltype(table):
182 178 caltype = 'UNKNOWN'
183 179 with sdutil.tbmanager(table) as tb:
184 180 if 'VisCal' in tb.keywordnames():
185 181 caltype = tb.getkeyword('VisCal')
186 182 return caltype
187 183

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

Add shortcut