Skip to content

Conversation

@gmertes
Copy link
Member

@gmertes gmertes commented Nov 17, 2025

Description

Improve the grib template manager in a backwards compatible way.

  • Improve documentation on how users can provide their own templates
  • For the samples provider, add the option for the sample index to be specified directly in the inference config
  • For the file provider, add an option for the file to contain many parameters, and do a lookup based on the param name.
  • In the case of grib input, the template manager automatically injects templates found in the input grib at the highest priority. Refactor this so that this becomes its own standalone template provider called input, this gives more flexibility to enable/disable combinations of template providers and set the priority..
  • input provider fallback mode: force an output variable to use one of the input variables
  • Improve logging of the template manager. Right now it only logs in the case of errors. Also log in the case of success so it's easier to see which templates are being used from which provider.
  • tests for everything, including backwards compatibility

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.


📚 Documentation preview 📚: https://anemoi-inference--383.org.readthedocs.build/en/383/

@gmertes gmertes linked an issue Nov 17, 2025 that may be closed by this pull request
5 tasks
@github-actions github-actions bot added tests and removed tests labels Nov 17, 2025
@gmertes gmertes moved this to Now In Progress in Anemoi-dev Nov 17, 2025
@github-actions github-actions bot added the tests label Nov 17, 2025
@gmertes gmertes force-pushed the 315-grib-template-manager branch from b45b878 to 22eb7c9 Compare November 17, 2025 17:05
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 21, 2025
@gmertes gmertes added the enhancement New feature or request label Nov 21, 2025
@gmertes gmertes marked this pull request as ready for review November 24, 2025 11:55
@gmertes gmertes requested a review from HCookie November 24, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ATS Approval not needed documentation Improvements or additions to documentation enhancement New feature or request tests

Projects

Status: Now In Progress

Development

Successfully merging this pull request may close these issues.

Make grib template manager more user friendly

2 participants