Initial form of this PR allows MACECalculator to override Atoms.info["theory"] when deciding which head to use for prediction. This is the minimal change I need to be able to use such models cleanly, but I'm not sure it's sufficient.
I'm not sure defaulting to any particular theory (first, as it does now, or any other arbitrary choice, like last) is a good idea to begin with. However, this choice might be related to details of the multi-head fitting (e.g. if we're using multi-head to stabilize fine-tuning, we could default to calling the new head a specific name, like 'Default').
Initial form of this PR allows
MACECalculator
to overrideAtoms.info["theory"]
when deciding which head to use for prediction. This is the minimal change I need to be able to use such models cleanly, but I'm not sure it's sufficient.Other related things I've noticed
"theory"
field), it prints an error about'Default'
not matching. I think it's from https://github.com/ACEsuit/mace/blob/5a66ca442391a73e81bf4cadcfec22d6d31c3c96/mace/data/atomic_data.py#L131'Default'
).closes #390