mycb.setsolvegainspline(table=caltable,append=append,mode=calmode,
refant=refant,splinetime=splinetime,preavg=preavg,
npointaver=npointaver,phasewrap=phasewrap)
reportsolvestats(mycb.activityrec());
except Exception as instance:
casalog.post("Error in gaincal: %s" % str(instance), "SEVERE")
raise Exception("Error in gaincal: "+str(instance))
def reportsolvestats(rec):
if (list(rec.keys()).count('origin')==1 and
rec['origin']=='Calibrater::genericGatherAndSolve'):
casalog.post("Calibration solve statistics per spw: (expected/attempted/succeeded):")