summaryrefslogtreecommitdiff
path: root/gr-fec/python
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2018-08-06 01:09:43 +0200
committerMarcus Müller <marcus@hostalia.de>2018-08-17 19:59:23 +0200
commit48d535e9d9d95524b2c8ed35b44c7eda541aea68 (patch)
treea4511ac107e9d7ebb4b650dbd5ea8fb63e67d0a6 /gr-fec/python
parent6bfe4661a87cb7fc5f47ec219e89f8e6215bd03f (diff)
python: replace unfunctional old_div with functional code
a previous change to py3k introduced synactically incorrect `old_div` function calls. A replacement with `//` and `/` where applicable is more appropriate. Eventually `from __future__ import division` needs to be added as well to have the "real" division also for integer values in python closes #1902
Diffstat (limited to 'gr-fec/python')
-rw-r--r--gr-fec/python/fec/fec_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fec/python/fec/fec_test.py b/gr-fec/python/fec/fec_test.py
index dfb5b1b28e..14f38f5768 100644
--- a/gr-fec/python/fec/fec_test.py
+++ b/gr-fec/python/fec/fec_test.py
@@ -67,7 +67,7 @@ class fec_test(gr.hier_block2):
ann=None, puncpat=puncpat,
integration_period=10000, rotator=None)
- noise = math.sqrt((10.0**(old_div(-esno / 10.0)),2.0))
+ noise = math.sqrt((10.0**(-esno / 10.0))/2.0)
#self.fastnoise = analog.fastnoise_source_f(analog.GR_GAUSSIAN, noise, seed, 8192)
self.fastnoise = analog.noise_source_f(analog.GR_GAUSSIAN, noise, seed)
self.addnoise = blocks.add_ff(1)