Skip to content

fixed NumPy INFINITY import#551

Open
BigRedDoge wants to merge 2 commits intoCPJKU:mainfrom
BigRedDoge:main
Open

fixed NumPy INFINITY import#551
BigRedDoge wants to merge 2 commits intoCPJKU:mainfrom
BigRedDoge:main

Conversation

@BigRedDoge
Copy link

Changes proposed in this pull request

Currently installation fails due to 'numpy/math/INFINITY.pxd' not found. This is because the numpy.math module is a deprecated alias for Python's standard math module. I've updated the usage to np.NPY_INFINITY, which resolves the problem.

This pull request fixes #550.

@ZhanruiLiang
Copy link

It seems like NPY_INFINITY is also deprecated. Using np.inf worked in my case.

@BigRedDoge
Copy link
Author

I changed it to np.inf

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.

Installation fails

2 participants