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
Using Python 3.8 and MATLAB R2021b on IDAaaS (EL7) I get the following error when trying to convert from a Numpy to MATLAB array:
Whereas using Python 3.8 and MATLAB R2021b on my local Windows machine it works fine, and the way the Numpy array is represented seems to be completely different:
It seems we can't just tell from the MATLAB version whether double will work or not. There is an alternative py.array.array('d', x) which seems to work, but I don't know how slow it is. We should probably do a try/catch and only if double doesn't work try the other way.
The text was updated successfully, but these errors were encountered:
Using Python 3.8 and MATLAB R2021b on IDAaaS (EL7) I get the following error when trying to convert from a Numpy to MATLAB array:
Whereas using Python 3.8 and MATLAB R2021b on my local Windows machine it works fine, and the way the Numpy array is represented seems to be completely different:
It seems we can't just tell from the MATLAB version whether
double
will work or not. There is an alternativepy.array.array('d', x)
which seems to work, but I don't know how slow it is. We should probably do a try/catch and only ifdouble
doesn't work try the other way.The text was updated successfully, but these errors were encountered: