diff options
author | Clayton Smith <argilo@gmail.com> | 2023-12-20 09:25:59 -0500 |
---|---|---|
committer | Jeff Long <willcode4@gmail.com> | 2023-12-20 20:13:34 -0500 |
commit | 0e121d233890c4c6a3408f1c2301cd62a5e3b045 (patch) | |
tree | 05af2576a2dc4c47132ce3770f893c620c2624b7 | |
parent | network: Add timeout to prevent qa_tcp_sink from hanging (diff) | |
download | gnuradio-0e121d233890c4c6a3408f1c2301cd62a5e3b045.tar.xz gnuradio-0e121d233890c4c6a3408f1c2301cd62a5e3b045.zip |
dtv: Read expected data as little-endian
Signed-off-by: Clayton Smith <argilo@gmail.com>
(cherry picked from commit 4d3eb9f321bf28d7d6310e304a6a0323cdfa66aa)
Signed-off-by: Jeff Long <willcode4@gmail.com>
-rw-r--r-- | gr-dtv/python/dtv/qa_dtv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-dtv/python/dtv/qa_dtv.py b/gr-dtv/python/dtv/qa_dtv.py index 5c02f3e34..ad1dbcc69 100644 --- a/gr-dtv/python/dtv/qa_dtv.py +++ b/gr-dtv/python/dtv/qa_dtv.py @@ -166,7 +166,7 @@ class test_dtv(gr_unittest.TestCase): self.assertEqual(getsize(self.outfile), getsize(testfile)) out_data = np.fromfile(self.outfile, dtype=np.float32) - expected_data = np.fromfile(testfile, dtype=np.float32) + expected_data = np.fromfile(testfile, dtype=np.dtype("<f")) self.assertFloatTuplesAlmostEqual(out_data, expected_data, 5) |