From 205a30856e3b32ffa54456da76899e8d11f8e0d7 Mon Sep 17 00:00:00 2001 From: Andy Kee Date: Tue, 26 Nov 2024 10:10:22 -0800 Subject: [PATCH] Remove unnecessary code --- lentil/detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lentil/detector.py b/lentil/detector.py index 298c3a8..91af0b4 100644 --- a/lentil/detector.py +++ b/lentil/detector.py @@ -336,7 +336,7 @@ def adc(img, gain, saturation_capacity=None, warn_saturate=False, dtype=None): if dtype is not None: img = img.astype(dtype) - img[img > saturation_capacity - 1] = saturation_capacity - 1 + return img