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

[FIX] int_t to npy_intp #2980

Merged
merged 2 commits into from
Nov 29, 2023
Merged

[FIX] int_t to npy_intp #2980

merged 2 commits into from
Nov 29, 2023

Conversation

skoudoro
Copy link
Member

@skoudoro skoudoro commented Nov 28, 2023

In Numpy 2.0, int_t type is not available anymore and it is not recommended to use it.

In our case, it can be safely replaced by npy_intp.

This fix DIPY compilation with Numpy 2.0.

A follow up PR should come today for the tests

PS: #2979

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Merging #2980 (fe45058) into master (4249da1) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2980   +/-   ##
=======================================
  Coverage   81.71%   81.71%           
=======================================
  Files         147      147           
  Lines       20569    20569           
  Branches     3279     3279           
=======================================
  Hits        16808    16808           
  Misses       2932     2932           
  Partials      829      829           
Files Coverage Δ
dipy/tracking/_utils.py 86.66% <100.00%> (ø)
dipy/tracking/local_tracking.py 94.44% <100.00%> (ø)

@skoudoro
Copy link
Member Author

ok, this is ready to go. Can someone have a look before merging ?

Copy link
Contributor

@jhlegarreta jhlegarreta left a comment

Choose a reason for hiding this comment

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

👍.

@skoudoro
Copy link
Member Author

Thank you @jhlegarreta for the review. merging

@skoudoro skoudoro merged commit 5ea0df6 into dipy:master Nov 29, 2023
31 checks passed
@skoudoro skoudoro deleted the replace_int_t branch November 29, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants