Skip to content

feat: add support for units compatibility#258

Merged
aaron-hopkinson merged 5 commits into
mainfrom
feat/units
Apr 22, 2026
Merged

feat: add support for units compatibility#258
aaron-hopkinson merged 5 commits into
mainfrom
feat/units

Conversation

@b8raoult
Copy link
Copy Markdown
Collaborator

Description

Add 'units' to the Variable class and implement checking of variables compatibility.

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.

@github-project-automation github-project-automation Bot moved this to To be triaged in Anemoi-dev Mar 16, 2026
@github-actions github-actions Bot added the enhancement New feature or request label Mar 16, 2026
Copy link
Copy Markdown
Contributor

@aaron-hopkinson aaron-hopkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code itself looks fine - but here are some (optional) suggestions.

It might also be worth having some tests for the new functionality.

Comment thread src/anemoi/transform/variables/__init__.py Outdated
Comment thread src/anemoi/transform/variables/__init__.py
Comment thread src/anemoi/transform/variables/__init__.py Outdated
Comment thread src/anemoi/transform/units.py Outdated
@aaron-hopkinson aaron-hopkinson merged commit 709dc72 into main Apr 22, 2026
71 checks passed
@aaron-hopkinson aaron-hopkinson deleted the feat/units branch April 22, 2026 11:35
@github-project-automation github-project-automation Bot moved this from To be triaged to Done in Anemoi-dev Apr 22, 2026
aaron-hopkinson pushed a commit that referenced this pull request Apr 22, 2026
🤖 Automated Release PR

This PR was created by `release-please` to prepare the next release.
Once merged:

1. A new version tag will be created
2. A GitHub release will be published
3. The changelog will be updated

Changes to be included in the next release:
---


##
[0.3.0](0.2.0...0.3.0)
(2026-04-22)


### ⚠ BREAKING CHANGES

* remove use of eval in tabular filters
([#278](#278))

### Features

* `apply-mask` (field) filter allows using another field as the mask
([#277](#277))
([76074d4](76074d4))
* Add support for units compatibility
([#258](#258))
([709dc72](709dc72))
* Deduplicate and reuse code from anemoi utils
([#281](#281))
([c97ac48](c97ac48))
* Remove use of eval in tabular filters
([#278](#278))
([b330a6d](b330a6d))

---
> [!IMPORTANT]
> Please do not change the PR title, manifest file, or any other
automatically generated content in this PR unless you understand the
implications. Changes here can break the release process.
> ⚠️ Merging this PR will:
> - Create a new release
> - Trigger deployment pipelines
> - Update package versions

 **Before merging:**
 - Ensure all tests pass
 - Review the changelog carefully
 - Get required approvals

[Release-please
documentation](https://github.com/googleapis/release-please)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants