Skip to content

Commit

Permalink
updated to dynamic_result branch from panoptica
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik-code committed Jan 23, 2024
1 parent 3ac52a6 commit 7933a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panoptica/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
_compute_centerline_dice,
_compute_centerline_dice_coefficient,
)
from panoptica.metrics.metrics import Metric, Metric, _Metric, MetricMode
from panoptica.metrics.metrics import Metric, _Metric, MetricMode
2 changes: 1 addition & 1 deletion panoptica/panoptic_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def __str__(self) -> str:
return text

def to_dict(self) -> dict:
return self._evaluation_metrics
return {k: getattr(self, v.id) for k,v in self._evaluation_metrics.items() if (v.error == False and v.was_calculated)}

def get_list_metric(self, metric: Metric, mode: MetricMode):
if metric in self._list_metrics:
Expand Down

0 comments on commit 7933a58

Please sign in to comment.