Skip to content

Commit

Permalink
fix nequip-train edge case with no train run type
Browse files Browse the repository at this point in the history
  • Loading branch information
cw-tan committed Jan 3, 2025
1 parent 1c2295c commit c8d8fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nequip/scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def main(config: DictConfig) -> None:

# ensure only single train at most, to protect restart and checkpointing logic later
assert (
sum([run_type == "train" for run_type in runs]) == 1
), "only a single `train` instance can be present in `run`"
sum([run_type == "train" for run_type in runs]) <= 1
), "only up to a single `train` instance can be present in `run`"

# ensure that the relevant metrics are present
if "train" in runs:
Expand Down

0 comments on commit c8d8fc5

Please sign in to comment.