Skip to content

Commit

Permalink
fix for missing metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
markjschreiber committed Aug 19, 2024
1 parent c2f67ba commit d0aa5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omics/cli/run_analyzer/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_task_timings_data(tasks, time_units="min"):
task["text_x"] = (task["stopTime"] - tare).total_seconds() + 30 * time_scale_factor

tasks[i] = task
task["estimatedUSD"] = task["metrics"].get("estimatedUSD", 0.0)
task["estimatedUSD"] = task.get("metrics", {}).get("estimatedUSD", 0.0)

return pd.DataFrame.from_records(tasks).sort_values("creationTime")

Expand Down

0 comments on commit d0aa5d9

Please sign in to comment.