Skip to content

Commit

Permalink
Formatting aligned with remaining code
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefBuchner committed Nov 9, 2023
1 parent e2ac9d5 commit 49a6c0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panoptica/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ def instance_dice(self) -> float:
Returns:
float: Average Dice coefficient.
"""
if self.tp == 0: return 0.0
else: return np.sum(self._dice_list) / self.tp
if self.tp == 0:
return 0.0
return np.sum(self._dice_list) / self.tp

@property
def instance_dice_sd(self) -> float:
Expand Down

0 comments on commit 49a6c0a

Please sign in to comment.