Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace | with Union in OpenMM flow #1103

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions emmet-core/emmet/core/openmm/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CalculationOutput(BaseModel):
@classmethod
def from_directory(
cls,
dir_name: Path | str,
dir_name: Union[Path, str],
state_file_name: str,
traj_file_name: str,
elapsed_time: Optional[float] = None,
Expand Down Expand Up @@ -243,7 +243,7 @@ class OpenMMTaskDocument(MDTaskDocument):
"task document.",
)

interchange_meta: Optional[list[MoleculeSpec] | Structure | str] = Field(
interchange_meta: Optional[Union[list[MoleculeSpec], Structure, str]] = Field(
None,
title="Interchange meta data",
description="Metadata for the interchange",
Expand Down
Loading