Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent ddc072e commit a1f408a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perun/io/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def value2ValueUnitStr(value: np.number, metric_md: MetricMetaData) -> str:
String represenation
"""
tfactor, new_mag = getTFactorMag(value, metric_md)
return f"{value/tfactor:.3f} {new_mag.symbol}{metric_md.unit.value}"
return f"{value / tfactor:.3f} {new_mag.symbol}{metric_md.unit.value}"


def value2MeanStdStr(stats: Stats) -> str:
Expand All @@ -82,4 +82,4 @@ def value2MeanStdStr(stats: Stats) -> str:
String represenation
"""
tfactor, new_mag = getTFactorMag(stats.mean, stats.metric_md)
return f"{stats.mean/tfactor:.2f} ± {stats.std/tfactor:.2f} {new_mag.symbol}{stats.metric_md.unit.value}"
return f"{stats.mean / tfactor:.2f} ± {stats.std / tfactor:.2f} {new_mag.symbol}{stats.metric_md.unit.value}"

0 comments on commit a1f408a

Please sign in to comment.