# Assume the BF weights have been set to select at least one ADC input per CB then the input (sky) noise at the ADC
# Verify that the active TP yield non-zero visibilities
# will contribute to all channels, so the visibilities for the TP pairs of active TP will then be none zero.
# . Assume the BF weights have been set to select at least one ADC input per CB then the input (sky) noise at the ADC
# will contribute to all channels, so the visibilities for the TP pairs of active TP will then be none zero.
ifactiveTp==nonZeroTp:
ifactiveTp==nonZeroTp:
tc.append_log(tc.V_INFO_DETAILS,reportStr+'Non zero TP = %s : polarizations = %s and dishes = %s are OK'%(nonZeroTp,nonZeroPolarizations,nonZeroDishes))
tc.append_log(tc.V_INFO_DETAILS,reportStr+'Non zero TP = %s : polarizations = %s and dishes = %s are OK'%(nonZeroTp,nonZeroPolarizations,nonZeroDishes))
else:
else:
tc.append_log(tc.V_ERRORS,reportStr+'Non zero TP are wrong (read %s != %s expected)'%(nonZeroTp,activeTp))
tc.append_log(tc.V_ERRORS,reportStr+'Non zero TP are wrong (read %s != %s expected)'%(nonZeroTp,activeTp))
tc.set_result('FAILED')
tc.set_result('FAILED')
# Verify that the auto correlation visibilities for the active TP are real and > 0
atpFail=[]
foraiinnonZeroAutoVisibilities:
atp2=apr.visibilities_to_tp_pairs(ai)
atp=atp2[0][0]# get tp from list with one tuple(tp, tp), both tp in tuple are the same index for auto correlation visibility