From 34eb466622cafab0dc6690dfe2fcfb7130346288 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 9 Aug 2024 17:10:00 +0200 Subject: [PATCH] fixed inconsistent returns --- dap/algos/radprof.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dap/algos/radprof.py b/dap/algos/radprof.py index 00fc3c8..8dbc92e 100644 --- a/dap/algos/radprof.py +++ b/dap/algos/radprof.py @@ -66,11 +66,11 @@ def radial_profile(data, rad, norm, keep_pixels): def calc_apply_threshold(results, data): apply_threshold = results.get("apply_threshold", False) if not apply_threshold: - return + return data for k in ("threshold_min", "threshold_max"): if k not in results: - return + return data data = data.copy() # do the following in-place changes on a copy