Skip to content

refactor: reorganise filter registeries#263

Open
aaron-hopkinson wants to merge 1 commit intomainfrom
refactor/filter_registries
Open

refactor: reorganise filter registeries#263
aaron-hopkinson wants to merge 1 commit intomainfrom
refactor/filter_registries

Conversation

@aaron-hopkinson
Copy link
Contributor

Description

Tabular and field filters now register into their specific registeries. The public API has not changed (the high-level filter registry still points at the fields registry, and tabular filters are not exposed to anemoi-datasets with this change).

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.

@@ -1 +1 @@
# (C) Copyright 2024 Anemoi contributors.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# (C) Copyright 2024- Anemoi contributors.

Comment on lines +20 to +21
for reg in (fields_filter_registry, tabular_filter_registry):
for n in reg.registered:
Copy link
Member

Choose a reason for hiding this comment

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

Didn't want to itertools.chain?

@HCookie HCookie moved this from To be triaged to Under Review in Anemoi-dev Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Under Review

Development

Successfully merging this pull request may close these issues.

2 participants