Skip to content

Commit

Permalink
test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Sep 14, 2024
1 parent b980987 commit d8ccc92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/iqtlabs/qa_iq_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_good_predict(self):
last_sc = 0
last_ts = 0
last_rx_freq = 0
for json_raw in json_raw_all:
for i, json_raw in enumerate(json_raw_all, start=1):
result = json.loads(json_raw)
print(result)
sample_value = float(
Expand All @@ -368,6 +368,7 @@ def test_good_predict(self):
rx_freq = float(result["metadata"]["rx_freq"])
ts = float(result["metadata"]["ts"])
sc = float(result["metadata"]["sample_clock"])
self.assertEqual(int(result["metadata"]["serial"]), i)
test_sample_clocks.add(sc)
count = float(result["metadata"]["sample_count"])
self.assertEqual(count, fft_size * n_vlen)
Expand Down

0 comments on commit d8ccc92

Please sign in to comment.