Skip to content

Commit

Permalink
Autoformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
brainless-bot[bot] committed Jan 23, 2024
1 parent 7933a58 commit 139b35f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion panoptica/panoptic_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 139b35f

Please sign in to comment.