Skip to content

Commit

Permalink
MAINT: Simplify style
Browse files Browse the repository at this point in the history
  • Loading branch information
jwboth committed Oct 16, 2023
1 parent c6687b0 commit ee353be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/darsia/multi_image_analysis/concentrationanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit ee353be

Please sign in to comment.