imr-framework / pypulseq

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

np.int and np.float #138

Closed sairamgeethanath closed 8 months ago

sairamgeethanath commented 8 months ago

Describe the bug Instance of np.int and np.float raise exceptions

To Reproduce run pypulseq libraries that compute timing events using a declaration of int and float

Expected behavior AttributeError: module 'numpy' has no attribute 'int'.

Screenshots

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

btasdelen commented 8 months ago

Hi @sairamgeethanath. There is no np.int and np.float should have left in the code base, they are converted to np.float64 and np.int32, as the former are deprecated: #115. I double-checked the code base and did not find any. Is it possible that you are using an old version of PyPulseq? If not, can you point out which function throws the error?