From 4b01cb0dca5323638db28b5895281a7de8b6dbbb Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 20 Aug 2024 22:17:56 +0200 Subject: [PATCH] naming; switch order --- dap/algos/forcesend.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dap/algos/forcesend.py b/dap/algos/forcesend.py index dc41ee1..2f76b12 100644 --- a/dap/algos/forcesend.py +++ b/dap/algos/forcesend.py @@ -6,8 +6,8 @@ from .thresh import threshold def calc_force_send(results, data, pixel_mask_pf, image, aggregator): data = calc_data(results, data, pixel_mask_pf, image, aggregator) - force_send_visualisation = calc_aggregation_ready(results, data, aggregator) - return data, force_send_visualisation + aggregation_ready = calc_aggregation_ready(results, data, aggregator) + return data, aggregation_ready @@ -90,11 +90,11 @@ def calc_aggregation_ready(results, data, aggregator): n_aggregated_images = aggregator.counter - if n_aggregated_images >= results["aggregation_max"]: - aggregator.reset() - return True + if n_aggregated_images < results["aggregation_max"]: + return False - return False + aggregator.reset() + return True