diff options
author | Martin Braun <martin@gnuradio.org> | 2020-04-11 21:10:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 21:10:40 -0700 |
commit | 92f23a453d7dd6caf3aa8beffc4750e8f269e8ae (patch) | |
tree | 2010051adf1373b113c3137088e79c890f16ad5b /gr-digital | |
parent | 9c7d4c84b004dced84548cfe1489cf9d6ac108c5 (diff) | |
parent | f259befbbe54e55fc4994899e92bcf5bf462fa2f (diff) |
Merge pull request #3351 from alekhgupta1441/alekh_gr
gr-digital/python : Updated soft_dec_lut_gen.py to avoid depreciation warnings.
Diffstat (limited to 'gr-digital')
-rw-r--r-- | gr-digital/python/digital/soft_dec_lut_gen.py | 4 |
1 files 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 4503c4fea7..84f6de66e4 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) |