Closed alinelena closed 2 months ago
Do you have an example?
If I run janus singlepoint --struct tests/data/NaCl.cif --arch mace --calc-kwargs "{'model' : 'example'}"
then the error (from MACE) seems fairly clear: ValueError: Couldn't find MACE model files: example
yes was with config
device: cuda
fmax: 0.01
arch: mace_mp
steps: 1000
calc-kwargs:
calc_kwargs:
dispersion: True
model: mace_agnesi_medium.model
Why do you have calc-kwargs
: calc_kwargs
?
I think if you get rid of the second one and reduce the nesting of model
you get the expected error. This happens as it's acting as if no model has been passed, which is why it uses the default.
I'm not sure we can validate kwargs sufficiently to catch cases like this particularly straightforwardly.
silly me yap we have it few times.. in the configs repo
Ah ok, opened an issue there: https://github.com/stfc/janus-tutorials/issues/7
if one specifies an invalid model (eg file does not exist) janus gets some default... but no warning is printed to let the user know... model loading failed.