Skip to content

Fix Ruff Numpy2 deprecation rules - #8179

Merged
KumoLiu merged 3 commits into
Project-MONAI:devfrom
jamesobutler:jamesobutler-ruff-numpy-updates
Oct 25, 2024
Merged

Fix Ruff Numpy2 deprecation rules#8179
KumoLiu merged 3 commits into
Project-MONAI:devfrom
jamesobutler:jamesobutler-ruff-numpy-updates

Conversation

@jamesobutler

Copy link
Copy Markdown
Contributor

Description

This addresses expired numpy deprecations that happened with the numpy 2 release. This code is compatible with numpy 1 and 2 to support future enablement of numpy2 for monai.

See https://docs.astral.sh/ruff/rules/numpy2-deprecation/

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

Signed-off-by: James Butler <james.butler@revvity.com>
Signed-off-by: James Butler <james.butler@revvity.com>
See https://docs.astral.sh/ruff/rules/numpy2-deprecation/

Signed-off-by: James Butler <james.butler@revvity.com>
@ericspod
ericspod requested a review from KumoLiu October 24, 2024 18:36

@ericspod ericspod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution, this all looks fine to me.

@KumoLiu

KumoLiu commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

/build

@KumoLiu
KumoLiu enabled auto-merge (squash) October 25, 2024 01:50
@KumoLiu
KumoLiu merged commit 5b2d78e into Project-MONAI:dev Oct 25, 2024
@jamesobutler
jamesobutler deleted the jamesobutler-ruff-numpy-updates branch October 25, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants