From 48c6bbe7c70b8e9e7108d2c4a7f60d7195a5fe74 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 9 Aug 2024 15:04:22 +0200 Subject: [PATCH] zero is zero --- dap/algos/forcesend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dap/algos/forcesend.py b/dap/algos/forcesend.py index 96aac64..84dd6da 100644 --- a/dap/algos/forcesend.py +++ b/dap/algos/forcesend.py @@ -40,10 +40,10 @@ def calc_apply_threshold(results, data): #TODO: this is duplicated in calc_apply_threshold and calc_radial_integration threshold_min = float(results["threshold_min"]) threshold_max = float(results["threshold_max"]) - data[data < threshold_min] = 0.0 + data[data < threshold_min] = 0 #TODO: skipping max is a guess, but not obvious/symmetric -- better to ensure the order min < max by switching them if needed if threshold_max > threshold_min: - data[data > threshold_max] = 0.0 + data[data > threshold_max] = 0 def calc_apply_aggregation(results, data, data_summed, n_aggregated_images):