tc.append_log(tc.V_ERRORS,'Specified --channels %s must fit in range(%d)'%(tc.channels,N_chan_x))
tc.append_log(tc.V_ERRORS,'Specified --channels %s must fit in range(%d)'%(channelIndices,N_chan_x))
tc.set_result('FAILED')
tc.set_result('FAILED')
sys.exit()
sys.exit()
tc.append_log(3,'>>>')
tc.append_log(3,'>>>')
tc.append_log(1,'>>> Title : Test case to verify visibility packet header and zero/non-zero payload of correlator DB OUTPUT for %s'%tc.unb_nodes_string())
tc.append_log(1,'>>> Title : Test case to verify visibility packet header and zero/non-zero payload of correlator DB OUTPUT for %s'%tc.unb_nodes_string())
# Verify that the active TP yield non-zero visibilities
# Verify that only the active TP yield non-zero visibilities
# . Assume the BF weights have been set to select at least one ADC input per CB then the input (sky) noise at the ADC
# . 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.
# will contribute to all channels, so the visibilities for the TP pairs of active TP will then be none zero.
forviinnonZeroVisibilities:
tc.append_log(tc.V_INFO_DETAILS,reportStr+'Non zero correlation[%d] = %s'%(vi,rdVisibilities[vi]))
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:
...
@@ -333,7 +174,10 @@ for bui in beamlets:
...
@@ -333,7 +174,10 @@ for bui in beamlets:
foraiinnonZeroAutoVisibilities:
foraiinnonZeroAutoVisibilities:
atp2=apr.visibilities_to_tp_pairs(ai)
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
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