From ee353be42168ab99a398dcfdd6ec544d4dc8e464 Mon Sep 17 00:00:00 2001 From: Jakub Both Date: Mon, 16 Oct 2023 14:41:45 +0200 Subject: [PATCH] MAINT: Simplify style --- src/darsia/multi_image_analysis/concentrationanalysis.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/darsia/multi_image_analysis/concentrationanalysis.py b/src/darsia/multi_image_analysis/concentrationanalysis.py index 6a45ea0f..0d718794 100644 --- a/src/darsia/multi_image_analysis/concentrationanalysis.py +++ b/src/darsia/multi_image_analysis/concentrationanalysis.py @@ -388,10 +388,7 @@ def _balance_signal(self, img: np.ndarray) -> np.ndarray: np.ndarray: balanced image """ - if self.balancing is not None: - return self.balancing(img) - else: - return img + return img if self.balancing is None else self.balancing(img) def _prepare_signal(self, signal: np.ndarray) -> np.ndarray: """