Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ruff and manual coding to adapt to numpy 2 #845

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

tfmoraes
Copy link
Member

Ruff:
np.mat -> numpy.asmatrix
np.Inf -> numpy.inf
np.float_ -> numpy.float64

Manual:
Replace legacy np.random.random call with np.random.Generator
Replace legacy np.random.rand call with np.random.Generator
Replace legacy np.random.uniform call with np.random.Generator
Replace legacy np.random.normal call with np.random.Generator

@tfmoraes tfmoraes merged commit 3d73c09 into invesalius:master Sep 16, 2024
1 check passed
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.

1 participant