From d6ce166ed3b81aacdb5c2d21300f8a1f2fa02ac1 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Fri, 15 Jun 2018 11:42:19 +0000 Subject: [PATCH] Corrected order of reportStr in code. --- .../commissioning/tests/verify_correlator_db_output.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/apertif/commissioning/tests/verify_correlator_db_output.py b/applications/apertif/commissioning/tests/verify_correlator_db_output.py index 3d23a00d57..adebd31b91 100644 --- a/applications/apertif/commissioning/tests/verify_correlator_db_output.py +++ b/applications/apertif/commissioning/tests/verify_correlator_db_output.py @@ -37,7 +37,7 @@ # -v 0, 1, 2 or 3 for regression test # 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: # Verification per PN for ni,nr in enumerate(tc.nodeNrs): # loop PN # Get read packet data - reportStr = 'unb = %2d, pn = %d, bui = %3d, ch = %2d : ' % (unb, pn, bui, ch) 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 unb = nr / nof_pn # = range(N_band) = 0:15 = [0:127] / 8 -- GitLab