summaryrefslogtreecommitdiff
path: root/gr-analog/python
diff options
context:
space:
mode:
authorJohn Sallay <jasallay@gmail.com>2021-10-23 08:26:42 -0400
committerMartin Braun <martin@gnuradio.org>2021-10-25 13:44:50 -0700
commit39e88e44607fe750fc6cba456554213adf9b862a (patch)
treeec81abb3711be25de16769cc1cfb4b197ac21a5c /gr-analog/python
parent40fd4cca9b3ca270b37c5fb654b29b8649c1f75d (diff)
Fix issue 4595 qa_agc Assertion Error.
The number of input elements needs to be disivible by volk_alignment, which it wasn't for machines with 512-bit registers. Signed-off-by: John Sallay <jasallay@gmail.com>
Diffstat (limited to 'gr-analog/python')
-rw-r--r--gr-analog/python/analog/qa_agc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-analog/python/analog/qa_agc.py b/gr-analog/python/analog/qa_agc.py
index a5a8ea47b6..9368dd5d2a 100644
--- a/gr-analog/python/analog/qa_agc.py
+++ b/gr-analog/python/analog/qa_agc.py
@@ -454,7 +454,9 @@ class test_agc(gr_unittest.TestCase):
tb = self.tb
sampling_freq = 100
- N = int(5 * sampling_freq)
+ # N must by a multiple of the volk_alignment of the system for this test to work.
+ # For a machine with 512-bit registers, that would be 8 complex-floats.
+ N = int(8 * sampling_freq)
src1 = analog.sig_source_c(sampling_freq, analog.GR_SIN_WAVE,
sampling_freq * 0.10, 100)
dst1 = blocks.vector_sink_c()