summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/ofdm_receiver.py
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-digital/python/digital/ofdm_receiver.py
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-digital/python/digital/ofdm_receiver.py')
-rw-r--r--gr-digital/python/digital/ofdm_receiver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-digital/python/digital/ofdm_receiver.py b/gr-digital/python/digital/ofdm_receiver.py
index d23b338b78..0a9d79f728 100644
--- a/gr-digital/python/digital/ofdm_receiver.py
+++ b/gr-digital/python/digital/ofdm_receiver.py
@@ -69,7 +69,7 @@ class ofdm_receiver(gr.hier_block2):
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
gr.io_signature2(2, 2, gr.sizeof_gr_complex*occupied_tones, gr.sizeof_char)) # Output signature
- bw = (old_div(float(occupied_tones) / float(fft_length)), 2.0)
+ bw = (float(occupied_tones) / float(fft_length)) / 2.0
tb = bw*0.08
chan_coeffs = filter.firdes.low_pass (1.0, # gain
1.0, # sampling rate