diff options
author | alekhgupta1441 <alekhgupta1441@gmail.com> | 2020-04-18 20:53:46 +0530 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-12-18 02:55:41 -0800 |
commit | 7727211c83e0462e50c61531057bb62ac8c9d514 (patch) | |
tree | 1264088d3b485bb6f384448f3c99e741ea6613a7 | |
parent | gr-digital: Update docs for MPSK SNR Estimator (diff) | |
download | gnuradio-7727211c83e0462e50c61531057bb62ac8c9d514.tar.xz gnuradio-7727211c83e0462e50c61531057bb62ac8c9d514.zip |
gr-digital/python : Updated soft_dec_lut_gen.py
-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 f51727770..3e92cea15 100644 --- a/gr-digital/python/digital/soft_dec_lut_gen.py +++ b/gr-digital/python/digital/soft_dec_lut_gen.py @@ -81,7 +81,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) @@ -118,7 +118,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) |