Skip to content

Enable ProbNum Import with NumPy 2.0 (Tested via linpde-gp) #864

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bydeng01
Copy link

In a Nutshell

This PR updates probnum to be compatible with NumPy 2.0 and above.

Detailed Description

Related Issues

Closes #862 #862

bydeng01 added 4 commits June 9, 2025 17:39
…lt_type - Replace deprecated np.find_common_type calls in SumLinearOperator and ProductLinearOperator - Use functools.reduce with np.result_type to achieve same functionality - Fixes AttributeError when using NumPy 2.0+
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Collaborator

@marvinpfoertner marvinpfoertner left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for taking care of this! :)

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.

Bug with numpy when importing ProbNum package
2 participants