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):