Skip to content

Commit

Permalink
Fix checking if metrics are uncertain
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Apr 18, 2024
1 parent fdaee6e commit 095f834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hpc_multibench/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def calculate_derived_metrics(
derivation,
) in self.bench_model.analysis.derived_metrics.items():
value = eval(derivation) # nosec: B307 # noqa: S307
if not isinstance(value, str):
if hasattr(value, "nominal_value") and hasattr(value, "std_dev"):
value = UFloat(value.nominal_value, value.std_dev)
metrics[metric] = value
output_metrics.append((run_configuration, metrics))
Expand Down

0 comments on commit 095f834

Please sign in to comment.