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

Remove deprecated type specifiers #126

Merged
merged 2 commits into from
May 27, 2023
Merged

Conversation

hcmh
Copy link
Contributor

@hcmh hcmh commented May 9, 2023

This changes all instances of

np.complex -> complex
np.float -> float
np.bool -> bool
np.int -> int

as they are depcreated since numpy 1.20.

Closes #123.

hcmh added 2 commits April 6, 2023 11:33
This is to ensure eventual compatibility with numpy>=1.24, as np.float
has been removed there.

For now however, numba is not compatible with numpy>=1.24, so sigpy
needs numpy<1.24 anyway.
np.complex and np.int have also been removed, and are replaced here by
their python equivalents.
@absudabsu
Copy link

absudabsu commented May 27, 2023

This would be really helpful so we don't have to downgrade our numpy version! Is there a timeline for merge?

Any chance of merging before ISMRM... so we can spend the week coding up new MRI apps? :)

@sidward
Copy link
Collaborator

sidward commented May 27, 2023

Sorry, I didn't have time to test. I'll merge now but will revert if folks have issues.

@sidward sidward merged commit aa61185 into mikgroup:master May 27, 2023
@absudabsu
Copy link

This change doesn't seem to be in the latest pypy package available via pip. Any thoughts?

@hcmh hcmh deleted the numpy-float-changes branch August 23, 2023 08:31
@schuenke
Copy link
Contributor

This change doesn't seem to be in the latest pypy package available via pip. Any thoughts?

The last PyPi release is from April, this fix was merged in May. For the pypulseq project (https://github.com/imr-framework/pypulseq), we will probably remove the sigpy dependency because of this 😞

Copy link

@curtcorum curtcorum left a comment

Choose a reason for hiding this comment

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

Did not check if any instances missed but all changes look correct.

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.

sigpy 0.1.25 is incompatible with newer numpy versions
5 participants