Skip to content

Commit

Permalink
PNLP-12553: fix stats
Browse files Browse the repository at this point in the history
  • Loading branch information
SyrexMinus committed Jan 30, 2025
1 parent e529943 commit 791e484
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/utils/stats_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def __init__(self, time: float, system: str | None = None, version: str | None =
self._time = time
self._inner_stats: list[Stats] = []
if inner_stats:
self._inner_stats = [Stats(**stats) for stats in inner_stats] if inner_stats[0] is dict else inner_stats
self._inner_stats = ([Stats(**stats) for stats in inner_stats] if isinstance(inner_stats[0], dict)
else inner_stats)
self._inner_stats_time_sum = None

@property
Expand Down

0 comments on commit 791e484

Please sign in to comment.