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
{{ message }}
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
from mat4py import savemat
import numpy as np
data = np.ones((10,1))
savemat('./test.mat', {'data':data})
raises an error. The error arises from numpy arrays not being an instance of Sequence. For the purposes of the library, it doesn't seem that strict Sequence requirements are necessary, so checking for hasattr(array, '__len__') and hasattr(array, '__getitem__') or isinstance(array, Iterable) should be enough to parse simple 2d arrays. What do you think @jcbsv@tirkarthi?