-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b49e8b
commit 77f4903
Showing
7 changed files
with
69 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pydantic import BaseModel, Field | ||
|
||
|
||
class SimulationConfig(BaseModel): | ||
|
||
md_engine: str = Field(default="amber") | ||
"""Molecular dynamics engine to use. Both `amber` and `namd` are supported.""" | ||
path_traj_relax: str | None = Field(default=None) | ||
"""Path to the final simulation trajectory file to use. The last frame of this | ||
trajectory will be used as the starting frame for the enhanced simulations. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
|
||
|
||
def link_file( | ||
path_original: str | None, | ||
link_name: str, | ||
write_dir: str = "", | ||
f_ext: str | None = None, | ||
) -> None: | ||
if path_original is None: | ||
raise ValueError(f"Original final path for {link_name} cannot be None") | ||
if f_ext is None: | ||
f_ext = os.path.splitext(path_original)[1][1:] | ||
os.symlink(path_original, os.path.join(write_dir, f"{link_name}.{f_ext}")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters