imr-framework / pypulseq

Pulseq in Python
https://pypulseq.readthedocs.io
GNU Affero General Public License v3.0
125 stars 67 forks source link

Update __init__.py to solve deprecation error #172

Closed SherineBrahma closed 8 months ago

SherineBrahma commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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.