-
Notifications
You must be signed in to change notification settings - Fork 16
feat: omegaconf based configs #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
## Description Fix as a pre-requisite to ecmwf/anemoi-utils#223 because the class hiearchy will change and the removed line created an exception. ## What problem does this change solve? <!-- Describe if it's a bugfix, new feature, doc update, or breaking change --> ## What issue or task does this change relate to? <!-- link to Issue Number --> ## Additional notes ## <!-- Include any additional information, caveats, or considerations that the reviewer should be aware of. --> ***As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/*** By opening this pull request, I affirm that all authors agree to the [Contributor License Agreement.](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md)
gmertes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR seems to break anemoi-datasets, something to do with the building of the loaders config? Is it because of the changes to the DotDict (which datasets.create.Config inherits from) ?
|
My opinion atm is that as Omegaconf is hardly supported, we should look at reimplementing it within utils to control the code |
Description
This prepare the ground for supporting OmegaConf substitutions in all YAML files (especially datasets and inference). The
DotDictis now a subclass of the OmegaConf object, so we keep backward compatibility with existing code.Note that the previous
config.pyhas been split betweenconfig.pyandsettings.py, the former handling general config files, the latter handling user settings. Backward compatibility will be supported for a while, with deprecation warnings.What problem does this change solve?
What issue or task does this change relate to?
Additional notes
As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/
By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.