Skip to content

Commit

Permalink
Merge pull request #2 from chemle/feature_sire
Browse files Browse the repository at this point in the history
Add callback function to use with Sire interface
  • Loading branch information
lohedges authored Nov 30, 2023
2 parents 55c0a98 + 5ec3c69 commit 99d42be
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 23 deletions.
15 changes: 15 additions & 0 deletions bin/emle-server
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ try:
log = int(os.getenv("EMLE_LOG"))
except:
log = 1
save_settings = os.getenv("EMLE_SAVE_SETTINGS")
orca_template = os.getenv("EMLE_ORCA_TEMPLATE")
deepmd_model = os.getenv("EMLE_DEEPMD_MODEL")
rascal_model = os.getenv("EMLE_RASCAL_MODEL")
parm7 = os.getenv("EMLE_PARM7")
Expand Down Expand Up @@ -126,7 +128,9 @@ env = {
"qm_indices": qm_indices,
"sqm_theory": sqm_theory,
"restart": restart,
"orca_template": orca_template,
"log": log,
"save_settings": save_settings,
}


Expand Down Expand Up @@ -256,12 +260,23 @@ parser.add_argument(
action=argparse.BooleanOptionalAction,
required=False,
)
parser.add_argument(
"--orca-template",
type=str,
help="the path to a template ORCA input file (only used when using the ORCA backend via Sire)",
required=False,
)
parser.add_argument(
"--log",
type=int,
help="The frequency of logging energies to file",
required=False,
)
parser.add_argument(
"--save-settings",
action=argparse.BooleanOptionalAction,
required=False,
)
args = vars(parser.parse_args())

# Pop the config.
Expand Down
Loading

0 comments on commit 99d42be

Please sign in to comment.