Skip to content
Snippets Groups Projects
Commit e4089a0b authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Made corrections and added nonZeroDishes and nonZeroPolarizations.

parent 0de6f381
No related branches found
No related tags found
Loading
...@@ -294,17 +294,21 @@ for bui in beamlets: ...@@ -294,17 +294,21 @@ for bui in beamlets:
even = True even = True
for data in rdPayload: for data in rdPayload:
if even: if even:
visReal = cm.to_signed(data) visReal = cm.to_signed(data, 32)
else: else:
visImag = cm.to_signed(data) visImag = cm.to_signed(data, 32)
rdVisibilities.append(complex(visReal, visImag)) rdVisibilities.append(complex(visReal, visImag))
even = not even
# Find the TP for all read visibilities that are non-zero # Find the TP for all read visibilities that are non-zero
nonZeroVisibilities = cm.find_indices_where_value_ne(rdVisibilities, 0) nonZeroVisibilities = cm.find_indices_where_ne(rdVisibilities, 0)
nonZeroTpPairs = visibilities_to_tp_pairs(nonZeroVisibilities) nonZeroTpPairs = apr.visibilities_to_tp_pairs(nonZeroVisibilities)
nonZeroTp = tp_pairs_to_active_tp(tpPairs) nonZeroTp = apr.tp_pairs_to_active_tp(nonZeroTpPairs)
tc.append_log(tc.V_INFO_DETAILS, reportStr + 'Non zero TP = %s' % nonZeroTp) nonZeroDishes = apr.tp_to_dish_indices(nonZeroTp)
nonZeroPolarizations = apr.tp_to_pol_indices(nonZeroTp)
tc.append_log(tc.V_INFO, reportStr + 'Non zero TP = %s : polarizations = %s and dishes = %s' % (nonZeroTp, nonZeroPolarizations, nonZeroDishes))
############################################################################### ###############################################################################
# End # End
tc.set_section_id('') tc.set_section_id('')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment