aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fading_ui/python
diff options
context:
space:
mode:
authorNaoki Pross <np@0hm.ch>2021-10-22 11:18:03 +0200
committerNaoki Pross <np@0hm.ch>2021-10-22 11:40:10 +0200
commitf550c9a343b1c0eb82cebba5aaa497387f184dc4 (patch)
tree8b4c6b1a9f773c40175d1dd16a5ab1ffa02e738b /src/gr-fading_ui/python
parentCreate (empty) out of tree gnuradio module fading_ui with block rx_ui_sink (diff)
downloadFading-f550c9a343b1c0eb82cebba5aaa497387f184dc4.tar.gz
Fading-f550c9a343b1c0eb82cebba5aaa497387f184dc4.zip
Make gr block compilable
Diffstat (limited to 'src/gr-fading_ui/python')
-rwxr-xr-xsrc/gr-fading_ui/python/qa_rx_ui_sink.py7
-rw-r--r--src/gr-fading_ui/python/rx_ui_sink.py4
2 files changed, 6 insertions, 5 deletions
diff --git a/src/gr-fading_ui/python/qa_rx_ui_sink.py b/src/gr-fading_ui/python/qa_rx_ui_sink.py
index 6601b52..2cbf90a 100755
--- a/src/gr-fading_ui/python/qa_rx_ui_sink.py
+++ b/src/gr-fading_ui/python/qa_rx_ui_sink.py
@@ -32,9 +32,12 @@ class qa_rx_ui_sink(gr_unittest.TestCase):
self.tb = None
def test_001_t(self):
- # set up fg
+ src_data = (-3, 4, -5.5, 2, 3)
+ src = blocks.vector_source_c(src_data, False)
+ sink = rx_ui_sink()
+
+ self.tb.connect(src, sink)
self.tb.run()
- # check data
if __name__ == '__main__':
diff --git a/src/gr-fading_ui/python/rx_ui_sink.py b/src/gr-fading_ui/python/rx_ui_sink.py
index cafe1ba..6dcb93e 100644
--- a/src/gr-fading_ui/python/rx_ui_sink.py
+++ b/src/gr-fading_ui/python/rx_ui_sink.py
@@ -30,12 +30,10 @@ class rx_ui_sink(gr.sync_block):
def __init__(self):
gr.sync_block.__init__(self,
name="rx_ui_sink",
- in_sig=[<+numpy.float32+>, ],
+ in_sig=[numpy.complex64],
out_sig=None)
def work(self, input_items, output_items):
- in0 = input_items[0]
- # <+signal processing here+>
return len(input_items[0])