aboutsummaryrefslogtreecommitdiffstats
path: root/tests/correlator/epy_block_1.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-09 18:37:06 +0100
committerNao Pross <np@0hm.ch>2021-12-09 18:37:06 +0100
commite034f477e6eb6570d309f43a5d4ca2a400c5aac9 (patch)
tree123fcaaf78f160aee6ab6596cdaf90d5296ba388 /tests/correlator/epy_block_1.py
parentRemove unnecessary (out of date) FIXME (diff)
downloadFading-e034f477e6eb6570d309f43a5d4ca2a400c5aac9.tar.gz
Fading-e034f477e6eb6570d309f43a5d4ca2a400c5aac9.zip
Begin tag stream to vector stream
Diffstat (limited to '')
-rw-r--r--tests/correlator/epy_block_1.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/correlator/epy_block_1.py b/tests/correlator/epy_block_1.py
index d30c2eb..7e722fc 100644
--- a/tests/correlator/epy_block_1.py
+++ b/tests/correlator/epy_block_1.py
@@ -1,22 +1,16 @@
-"""
-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):
+ def __init__(self, vlen=1):
+ dt = np.byte if vlen == 1 else (np.byte, vlen)
+
gr.sync_block.__init__(
self,
name='Printer',
- in_sig=[np.byte],
+ in_sig=[(np.byte, vlen)],
out_sig=[]
)