diff options
Diffstat (limited to 'src/gr-fading_ui')
-rwxr-xr-x | src/gr-fading_ui/python/qa_rx_ui_sink.py | 7 | ||||
-rw-r--r-- | src/gr-fading_ui/python/rx_ui_sink.py | 4 |
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]) |