fixed inconsistent returns

This commit is contained in:
2024-08-09 17:10:00 +02:00
parent 442a7dab28
commit 34eb466622

View File

@ -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