diff --git a/applications/apertif/commissioning/tests/verify_correlator_db_output.py b/applications/apertif/commissioning/tests/verify_correlator_db_output.py index 3d23a00d570a4bf897ed9fa66ccc1c7dec9f0799..adebd31b91ab873a240f6368229c3dbcd1b94c06 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