Skip to content

Commit

Permalink
bring run_stats in as root level field
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmathis committed Sep 26, 2024
1 parent 2b80091 commit 02838e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions emmet-core/emmet/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ class TaskDoc(StructureMetadata, extra="allow"):
description="Identifier for this calculation; should provide rough information about the calculation origin and purpose.",
)

run_stats: Optional[RunStatistics] = Field(
None,
description="Summary of runtime statistics for each calculation in this task",
)

# Note that private fields are needed because TaskDoc permits extra info
# added to the model, unlike TaskDocument. Because of this, when pydantic looks up
# attrs on the model, it searches for them in the model extra dict first, and if it
Expand Down

0 comments on commit 02838e4

Please sign in to comment.