diff options
author | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
commit | 3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e (patch) | |
tree | 812d73bd351621e4ed5cfe363e8609e84e45706c /tests/Map/epy_block_1.py | |
parent | Correctly decode symbols (diff) | |
download | Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.tar.gz Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.zip |
Delete old stuff
Diffstat (limited to '')
-rw-r--r-- | tests/Map/epy_block_1.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/Map/epy_block_1.py b/tests/Map/epy_block_1.py deleted file mode 100644 index d30c2eb..0000000 --- a/tests/Map/epy_block_1.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -Embedded Python Blocks: - -Each time this file is saved, GRC will instantiate the first class it finds -to get ports and parameters of your block. The arguments to __init__ will -be the parameters. All of them are required to have default values! -""" - -import numpy as np -from gnuradio import gr - -np.set_printoptions(formatter={'int':hex}) - -class blk(gr.sync_block): - def __init__(self): - gr.sync_block.__init__( - self, - name='Printer', - in_sig=[np.byte], - out_sig=[] - ) - - def work(self, input_items, output_items): - inp = np.array(input_items[0], dtype=np.uint8) - print(f"Decoded {len(inp)} samples:\n{inp}") - - return len(inp) |