aboutsummaryrefslogtreecommitdiffstats
path: root/python/receiver/gsm_wideband_input.py
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-01-06 22:21:09 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2016-01-06 22:21:09 +0100
commit8715da0893b5349f9c2d542807d5f5cd835262f4 (patch)
treeb6876c4065790667b2fb632b57d85d1bdff8bd9e /python/receiver/gsm_wideband_input.py
parente3b652ddf393ab6d6d31131b461ca8820379bdcd (diff)
Fixed all hierarchical blocks in the project
by adding a hier_block class that solves incompatibility between GNU Radio >=3.7.9 and <=3.7.8 and inheriting all hierarchical blocks from it. This commit fixes #135
Diffstat (limited to 'python/receiver/gsm_wideband_input.py')
-rw-r--r--python/receiver/gsm_wideband_input.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/receiver/gsm_wideband_input.py b/python/receiver/gsm_wideband_input.py
index 3138885..9dee08d 100644
--- a/python/receiver/gsm_wideband_input.py
+++ b/python/receiver/gsm_wideband_input.py
@@ -14,10 +14,10 @@ from gnuradio.filter import firdes
import grgsm.arfcn as arfcn
import grgsm
-class gsm_wideband_input(gr.hier_block2):
+class gsm_wideband_input(grgsm.hier_block):
def __init__(self, ppm=0, osr=4, fc=925.2e6, samp_rate_in=20e6, ca=[]):
self.num_streams = len(ca)
- gr.hier_block2.__init__(
+ grgsm.hier_block.__init__(
self, "GSM wideband input adaptor",
gr.io_signature(1, 1, gr.sizeof_gr_complex*1),
gr.io_signature(self.num_streams, self.num_streams, gr.sizeof_gr_complex*1),