Skip to content

feat(cutout_mask): add new optional argument max_distance_km to cutout_mask() function#214

Merged
aaron-hopkinson merged 5 commits intomainfrom
feat/expand-cutout
Feb 5, 2026
Merged

feat(cutout_mask): add new optional argument max_distance_km to cutout_mask() function#214
aaron-hopkinson merged 5 commits intomainfrom
feat/expand-cutout

Conversation

@JPXKQX
Copy link
Member

@JPXKQX JPXKQX commented Feb 3, 2026

Description

This PR adds an optional new argument, max_distance_km, which drops points that are too far from the LAM. This is useful for the LAM during training, as it prevents excessive memory usage.

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-actions github-actions bot added the tests label Feb 3, 2026
Copy link
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.

Thanks for this. Looks good, mainly style comments, and one thing checking I understand the behaviour.

@github-project-automation github-project-automation bot moved this from To be triaged to Under Review in Anemoi-dev Feb 4, 2026
JPXKQX and others added 3 commits February 4, 2026 19:08
Co-authored-by: Aaron Hopkinson <197336788+aaron-hopkinson@users.noreply.github.com>
@JPXKQX
Copy link
Member Author

JPXKQX commented Feb 4, 2026

Thank you for taking the time to review this, Aaron! I have tried to address all the points, let me know if there is anything else

@aaron-hopkinson
Copy link
Contributor

Looks good to me. Thanks @JPXKQX

@aaron-hopkinson aaron-hopkinson merged commit b1e015f into main Feb 5, 2026
71 checks passed
@aaron-hopkinson aaron-hopkinson deleted the feat/expand-cutout branch February 5, 2026 09:39
@github-project-automation github-project-automation bot moved this from Under Review to Done in Anemoi-dev Feb 5, 2026
aaron-hopkinson pushed a commit that referenced this pull request Feb 5, 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.1.23](0.1.22...0.1.23)
(2026-02-05)


### Features

* **cutout_mask:** Add new optional argument `max_distance_km` to
cutout_mask() function
([#214](#214))
([b1e015f](b1e015f))

---
> [!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.

2 participants