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

Update __init__.py to solve deprecation error #172

Closed
wants to merge 1 commit into from

Conversation

SherineBrahma
Copy link

Changed np.float to float to address the following depreciation error.

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Changed np.float to float to address the following depreciation error.

AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
@schuenke
Copy link
Collaborator

schuenke commented Apr 4, 2024

This was fixed with #115 and is available in the dev branch.
Currently, the dev branch is the default and also the stable branch.

@schuenke schuenke closed this Apr 4, 2024
@schuenke
Copy link
Collaborator

schuenke commented Apr 4, 2024

Use pypulseq@git+https://github.com/imr-framework/pypulseq as dependency or
pip install git+https://github.com/imr-framework/pypulseq to install the latest version of the dev branch.

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.

2 participants