From faa774e4dc2fee97bc472975d50f9fcd8f694761 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 15 Aug 2024 10:07:50 +0200 Subject: [PATCH] de morgan --- dap/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap/worker.py b/dap/worker.py index ae811f4..dd2ad74 100644 --- a/dap/worker.py +++ b/dap/worker.py @@ -129,7 +129,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host send_empty_cond1 = (apply_aggregation and "aggregation_max" in results and not force_send_visualisation) send_empty_cond2 = (not results["is_good_frame"]) - send_empty_cond3 = (not (results["is_hit_frame"] or randint(1, skip_frames_rate) == 1)) + send_empty_cond3 = (not results["is_hit_frame"] and randint(1, skip_frames_rate) != 1) if send_empty_cond1 or send_empty_cond2 or send_empty_cond3: data = np.empty((2, 2), dtype=np.uint16)