diff --git a/panoptica/panoptic_result.py b/panoptica/panoptic_result.py index 650f14f..38b002a 100644 --- a/panoptica/panoptic_result.py +++ b/panoptica/panoptic_result.py @@ -363,7 +363,11 @@ def __str__(self) -> str: return text def to_dict(self) -> dict: - return {k: getattr(self, v.id) for k,v in self._evaluation_metrics.items() if (v.error == False and v.was_calculated)} + 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: