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

Corrected order of reportStr in code.

parent b852669b
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# -v 0, 1, 2 or 3 for regression test # -v 0, 1, 2 or 3 for regression test
# At central correlator verify expected result via DB # At central correlator verify expected result via DB
> python $RADIOHDL/applications/apertif/commissioning/tests/verify_correlator_db_output.py -v 3 --tel a --unb 0 --fn 0:3 --bn 0:3 > python $RADIOHDL/applications/apertif/commissioning/tests/verify_correlator_db_output.py -v 3 --tel a --unb 0 --fn 0:3 --bn 0:3 --beamlets 0 --channels 0
""" """
############################################################################### ###############################################################################
...@@ -161,9 +161,13 @@ for bui in beamlets: ...@@ -161,9 +161,13 @@ for bui in beamlets:
# Verification per PN # Verification per PN
for ni,nr in enumerate(tc.nodeNrs): # loop PN for ni,nr in enumerate(tc.nodeNrs): # loop PN
# Get read packet data # Get read packet data
reportStr = 'unb = %2d, pn = %d, bui = %3d, ch = %2d : ' % (unb, pn, bui, ch)
rdData = dbOutputReadData[ni] rdData = dbOutputReadData[ni]
# Get packet info
unb = nr / nof_pn # = range(N_band) = 0:15 = [0:127] / 8
pn = nr % nof_pn # = range(nof_pn) = 0:7 = [0:127] % 8
reportStr = 'unb = %2d, pn = %d, bui = %3d, ch = %2d : ' % (unb, pn, bui, ch)
################################################################### ###################################################################
# Verify header fields # Verify header fields
unb = nr / nof_pn # = range(N_band) = 0:15 = [0:127] / 8 unb = nr / nof_pn # = range(N_band) = 0:15 = [0:127] / 8
......
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