void-packages/srcpkgs/gnuradio/patches/f259befbbe54e55fc4994899e92bcf5bf462fa2f.patch
Gonzalo Tornaría 6932a65a55 gnuradio: revbump for gsl-2.7.1
Also fix do_check() step:
 - add python3-scipy to checkdepends, required by some tests
 - add three patches from upstream that fix some other tests
 - add a patch to (conditionally) skip a test that hangs on 32 bit

Note: on i686 2 tests fail (qa_ctcss_squelch, qa_constellation)
2022-01-12 16:48:22 +01:00

31 lines
1.1 KiB
Diff

From f259befbbe54e55fc4994899e92bcf5bf462fa2f Mon Sep 17 00:00:00 2001
From: alekhgupta1441 <alekhgupta1441@gmail.com>
Date: Sun, 12 Apr 2020 03:48:14 +0530
Subject: [PATCH] gr-digital/python : Updated soft_dec_lut_gen.py
---
gr-digital/python/digital/soft_dec_lut_gen.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gr-digital/python/digital/soft_dec_lut_gen.py b/gr-digital/python/digital/soft_dec_lut_gen.py
index 4503c4fea7b..84f6de66e45 100644
--- a/gr-digital/python/digital/soft_dec_lut_gen.py
+++ b/gr-digital/python/digital/soft_dec_lut_gen.py
@@ -73,7 +73,7 @@ def soft_dec_table_generator(soft_dec_gen, prec, Es=1):
'''
- npts = 2.0**prec
+ npts = int(2.0**prec)
maxd = Es*numpy.sqrt(2.0)/2.0
yrng = numpy.linspace(-maxd, maxd, npts)
xrng = numpy.linspace(-maxd, maxd, npts)
@@ -110,7 +110,7 @@ def soft_dec_table(constel, symbols, prec, npwr=1):
re_max = max(numpy.array(constel).real)
im_max = max(numpy.array(constel).imag)
- npts = 2.0**prec
+ npts = int(2.0**prec)
yrng = numpy.linspace(im_min, im_max, npts)
xrng = numpy.linspace(re_min, re_max, npts)