diff options
author | Vasil Velichkov <vvvelichkov@gmail.com> | 2019-09-02 04:06:41 +0300 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2020-02-14 15:14:07 +0000 |
commit | bf8a3a4e67701d992ace4e76650b5d2142ab9fd2 (patch) | |
tree | faec16b90fc0e1c7a58144e7129c461fee8d7086 /python/receiver | |
parent | 3c8b1bcf9dc85934b6810abcf87931d539d99620 (diff) |
Various python3 related changes
- Use relative import for grgsm's modules
- Convert map to list
- Remove the hier_block.py workaround as as gnuradio 3.7 is no longer
supported in this branch
Change-Id: I5ca8fd340823996e8c444aaf18ddacd85c92ab1c
Diffstat (limited to 'python/receiver')
-rw-r--r-- | python/receiver/fcch_detector.py | 4 | ||||
-rw-r--r-- | python/receiver/gsm_input.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/receiver/fcch_detector.py b/python/receiver/fcch_detector.py index 81438e2..9b787c2 100644 --- a/python/receiver/fcch_detector.py +++ b/python/receiver/fcch_detector.py @@ -36,10 +36,10 @@ from gnuradio import gr from gnuradio.filter import firdes import grgsm -class fcch_detector(grgsm.hier_block): +class fcch_detector(gr.hier_block2): def __init__(self, OSR=4): - grgsm.hier_block.__init__( + gr.hier_block2.__init__( self, "FCCH bursts detector", gr.io_signature(1, 1, gr.sizeof_gr_complex*1), gr.io_signature(1, 1, gr.sizeof_gr_complex*1), diff --git a/python/receiver/gsm_input.py b/python/receiver/gsm_input.py index 8c4ad51..05e323d 100644 --- a/python/receiver/gsm_input.py +++ b/python/receiver/gsm_input.py @@ -33,7 +33,7 @@ from gnuradio.filter import firdes import grgsm -class gsm_input(grgsm.hier_block): +class gsm_input(gr.hier_block2): def __init__(self, fc=940e6, osr=4, ppm=0, samp_rate_in=1e6): gr.hier_block2.__init__( |