You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to encode complex array, the np.stack method is used, but it results in the following error :
File "C:\XXX\Lib\site-packages\jdata\jdata.py", line 136, in encode newobj["_ArrayData_"] = np.stack(d.ravel().real, d.ravel().imag)
TypeError: only integer scalar arrays can be converted to a scalar index
imaginary part is seen as the "axis" parameter of np.stack function. adding 2 parenthesis should fix the bug newobj["_ArrayData_"] = np.stack((d.ravel().real, d.ravel().imag))
The text was updated successfully, but these errors were encountered:
to encode complex array, the np.stack method is used, but it results in the following error :
File "C:\XXX\Lib\site-packages\jdata\jdata.py", line 136, in encode
newobj["_ArrayData_"] = np.stack(d.ravel().real, d.ravel().imag)
TypeError: only integer scalar arrays can be converted to a scalar index
imaginary part is seen as the "axis" parameter of np.stack function. adding 2 parenthesis should fix the bug
newobj["_ArrayData_"] = np.stack((d.ravel().real, d.ravel().imag))
The text was updated successfully, but these errors were encountered: