diff options
author | Nao Pross <np@0hm.ch> | 2021-11-24 20:20:40 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-11-24 20:20:40 +0100 |
commit | c9e98bbf349dd74dfe3d6ef1a71f91418dfc2eb4 (patch) | |
tree | 34c6e832aa949265061ae7cb80a097cf2666695c /src/gr-fadingui/python/xor_frame_sync.py | |
parent | Fir ganzalig implementiert, interpoliert versuch (diff) | |
download | Fading-c9e98bbf349dd74dfe3d6ef1a71f91418dfc2eb4.tar.gz Fading-c9e98bbf349dd74dfe3d6ef1a71f91418dfc2eb4.zip |
Discussion
Diffstat (limited to '')
-rw-r--r-- | src/gr-fadingui/python/xor_frame_sync.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gr-fadingui/python/xor_frame_sync.py b/src/gr-fadingui/python/xor_frame_sync.py index 312ad2a..bb5cfb1 100644 --- a/src/gr-fadingui/python/xor_frame_sync.py +++ b/src/gr-fadingui/python/xor_frame_sync.py @@ -133,16 +133,20 @@ class xor_frame_sync(gr.sync_block): # return data with delay out = output_items[0] # FIXME: this is also wrong - out[:] = self.delaybuf[:len(out)] + # out[:] = self.delaybuf[:len(out)] + out[:] = inp[:] inptmp = np.array(inp[:12], dtype=np.uint8) inphex = np.array(list(map(hex, inptmp))) + inpbits = np.array(list(map("{:08b}".format, inptmp))) + log.debug(f"inp={inptmp}") log.debug(f"inp={inphex}") + log.debug(f"inp={inpbits}") # outtmp = np.array(out[:12], dtype=np.uint8) # log.debug(f"out={outtmp}") - return len(out) + return inp_len |