status: failed duration: 0.001s captured errors: @pytest.mark.skipif(module_import_skip, reason="cannot import IIRrational_test_data") def test_mat_struct_RT(): fname = matlab_test_data.matfiles["iir_test_struct.mat"] > fdict = matlab_io.load_matlab(fname) ../../src/wield/control/fitting/SISO/test/file_io/test_files.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /wield/wield-utilities/src/wield/utilities/file_io/matlab_io.py:52: in load_matlab d = squeezerec(None, d) /wield/wield-utilities/src/wield/utilities/file_io/matlab_io.py:16: in squeezerec obj[k] = squeezerec(k, v) /wield/wield-utilities/src/wield/utilities/file_io/matlab_io.py:35: in squeezerec d[name] = squeezerec(name, obj[name]) /wield/wield-utilities/src/wield/utilities/file_io/matlab_io.py:21: in squeezerec return squeezerec(None, obj.item()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ key = None obj = array([array([1, 2], dtype=uint8), array([1, 2], dtype=object), array((1,), dtype=[('A', 'O')])], dtype=object) def squeezerec(key, obj): if isinstance(obj, dict): for k, v in list(obj.items()): obj[k] = squeezerec(k, v) return obj elif isinstance(obj, np.ndarray): if obj.dtype.names is None: if not obj.shape: return squeezerec(None, obj.item()) if obj.shape == (0,) or obj.shape == (0, 0): return None else: if obj.dtype == object: lst = [] for idx, v in enumerate(obj): lst.append(squeezerec(idx, v)) > return np.array(lst) E ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part. /wield/wield-utilities/src/wield/utilities/file_io/matlab_io.py:29: ValueError