atomistic-machine-learning / schnetpack

SchNetPack - Deep Neural Networks for Atomistic Systems
Other
774 stars 214 forks source link

hydra: add _self_ to defaults list to avoid warning #593

Closed Maltimore closed 8 months ago

Maltimore commented 8 months ago

Hydra 1.1 changes the order in which values in the defaults list are overridden:

https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/default_composition_order/

None of the configs I found in schnetpack is affected by this but in order to make it clear to hydra that we're aware of this issue, we can add self at the beginning of the defaults list. This avoids a warning on every run.