Skip to content

Commit

Permalink
Improve default options when using emle-server.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Jan 24, 2024
1 parent ce39507 commit 480c3e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ For usage information, run:
emle-server --help
```

(On startup an `emle_settings.yaml` file will be written to the working directory
(By default, an `emle_settings.yaml` file will be written to the working directory
containing the settings used to configure the server. This can be used to re-run
an existing simulation using the `--config` option or `EMLE_CONFIG` environment
variable. Additional `emle_pid.txt` and `emle_port.txt` files contain the process
Expand Down Expand Up @@ -215,10 +215,11 @@ will look something like the following, where the columns specify the current
step, the in vacuo energy and the total energy.

General log messages are written to the file specified by the `--log-file` or
`EMLE_LOG_FILE` options. (By default, no log file is used and diagnostic messages
are written to `sys.stderr`.) The log level can be adjusted by using the
`--log-level` or `EMLE_LOG_LEVEL` options. For performance, the default log level
is set to `ERROR`.
`EMLE_LOG_FILE` options. (When using the Python API, by default, no log file is
used and diagnostic messages are written to `sys.stderr`. When using `emle-server`,
logs are by default redirected to `emle_log.txt`.) The log level can be adjusted
by using the `--log-level` or `EMLE_LOG_LEVEL` options. For performance, the default
log level is set to `ERROR`.

```
# Step E_vac (Eh) E_tot (Eh)
Expand Down
9 changes: 9 additions & 0 deletions bin/emle-server
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ if args["deepmd_model"] is not None:
else:
args["deepmd_model"] = models

# Log errors by default.
if args["log_file"] is None:
args["log_file"] = "emle_log.txt"

# Save settings by default.
if args["save_settings"] is None:
args["save_settings"] = True

# Use the default backend if no external backend is specified.
if args["external_backend"] is None:
if args["backend"] is None:
args["backend"] = "torchani"
Expand Down

0 comments on commit 480c3e4

Please sign in to comment.