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

REFACTOR: Add support for NumPy 2.0 #376

Open
wants to merge 1 commit into
base: 2.1.x
Choose a base branch
from
Open

Conversation

mtsokol
Copy link
Contributor

@mtsokol mtsokol commented Nov 8, 2023

Hi @j-ittner,

There's a new major release planned for NumPy for the end of December (namely NumPy 2.0) and there's quite a number of changes in the public API.

I checked codebases of facet, sklearndf and pytools and the only change that needs to be reflected is np.float_ -> np.float64 (it's a backward compatible update).

One cosmetic change that could also be included is np.int_ -> np.int64: Explicit bit-size aliases are now recommended to avoid platform-dependent behavior. Also, the default integer changed on Windows as np.int_ will point to C's intptr_t instead of long data type (only an actual change for Windows 64bit). But I don't think it could impact facet directly.

@j-ittner j-ittner changed the title REFACTOR: Adhere to NumPy 2.0 changes REFACTOR: Add support for NumPy 2.0 Nov 14, 2023
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.

None yet

1 participant