Skip to content

Commit

Permalink
fix config-path arg bug in CLIs
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Nov 13, 2024
1 parent 89fac82 commit a95eb5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion neural_lam/create_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,9 @@ def cli(input_args=None):
)
args = parser.parse_args(input_args)

assert args.config is not None, "Specify your config with --config_path"
assert (
args.config_path is not None
), "Specify your config with --config_path"

# Load neural-lam configuration and datastore to use
_, datastore = load_config_and_datastore(config_path=args.config_path)
Expand Down
4 changes: 3 additions & 1 deletion neural_lam/train_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def main(input_args=None):
}

# Asserts for arguments
assert args.config is not None, "Specify your config with --config_path"
assert (
args.config_path is not None
), "Specify your config with --config_path"
assert args.model in MODELS, f"Unknown model: {args.model}"
assert args.eval in (
None,
Expand Down

0 comments on commit a95eb5a

Please sign in to comment.