From a96a5d64233254581328603ac21d3c486a767c04 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 30 Jul 2024 15:05:42 +0200 Subject: [PATCH] removed unused True path --- dap/worker.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dap/worker.py b/dap/worker.py index e2434a0..6ace835 100644 --- a/dap/worker.py +++ b/dap/worker.py @@ -363,16 +363,12 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host accumulator_socket.send_json(results, FLAGS) if apply_aggregation and "aggregation_max" in results: - if forceSendVisualisation: - pass - else: + if not forceSendVisualisation: data = np.empty((2, 2), dtype=np.uint16) results["type"] = str(data.dtype) results["shape"] = data.shape else: - if results["is_good_frame"] and (results["is_hit_frame"] or randint(1, skip_frames_rate) == 1): - pass - else: + if not results["is_good_frame"] or not (results["is_hit_frame"] or randint(1, skip_frames_rate) == 1): data = np.empty((2, 2), dtype=np.uint16) results["type"] = str(data.dtype) results["shape"] = data.shape