Skip to content

Commit

Permalink
change default to None for forces and stress to prevent Pydantic vali…
Browse files Browse the repository at this point in the history
…dation errors on older calculations that did not calculate those fields
  • Loading branch information
tsmathis committed May 9, 2024
1 parent 39be2f6 commit c3e74a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmet-core/emmet/core/vasp/task_valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ class OutputSummary(BaseModel):
None, description="The DFT bandgap for the last calculation"
)
forces: Optional[List[Vector3D]] = Field(
[], description="Forces on atoms from the last calculation"
None, description="Forces on atoms from the last calculation"
)
stress: Optional[Matrix3D] = Field(
[], description="Stress on the unitcell from the last calculation"
None, description="Stress on the unitcell from the last calculation"
)


Expand Down

0 comments on commit c3e74a3

Please sign in to comment.