Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
federicazanca committed May 23, 2024
1 parent 4aaab5b commit fda6126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiida_mlip/calculations/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def validate_inputs(
if not ((Path(config_file.as_dictionary[key])).resolve()).exists():
raise InputValidationError(f"Path given for {key} does not exist")
# Check if fine-tuning is enabled and validate accordingly
if "fine_tune" in inputs:
if inputs["fine_tune"] is True:
if "foundation_model" not in config_file and "model" not in inputs:
raise InputValidationError(
"Undefined Model to fine-tune in inputs or config file"
Expand Down

0 comments on commit fda6126

Please sign in to comment.