From 9dca36d5de399fccf56cf4d845a884b56e4c2ffb Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 23 Nov 2021 17:44:01 +0100 Subject: Bugs in xor sync --- src/gr-fadingui/python/qa_xor_frame_sync.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gr-fadingui/python/qa_xor_frame_sync.py') diff --git a/src/gr-fadingui/python/qa_xor_frame_sync.py b/src/gr-fadingui/python/qa_xor_frame_sync.py index 280c694..e763d00 100644 --- a/src/gr-fadingui/python/qa_xor_frame_sync.py +++ b/src/gr-fadingui/python/qa_xor_frame_sync.py @@ -16,10 +16,11 @@ class test_xor_frame_sync(gr_unittest.TestCase): def test_001(self): """Test a byte aligned delay""" - pattern = np.array([0xbe, 0xef], dtype=np.uint8) + pattern = np.array([0xc0, 0xff, 0xee], dtype=np.uint8) testdata = np.packbits(np.concatenate([ - np.unpackbits(np.arange(0, 10, dtype=np.uint8)), - np.random.randint(0, 2, size = 8 * 5), np.unpackbits(pattern), + np.unpackbits(np.arange(0, 5, dtype=np.uint8)), + # np.random.randint(0, 2, size = 8 * 5), + np.unpackbits(pattern), np.random.randint(0, 2, size = 64) ])) -- cgit v1.2.1