status: failed duration: 0.010s captured errors: @skipdeco def test_mat_printdata(): fname = matlab_test_data.matfiles["iir_test_struct.mat"] fname_out = path.join(localpath, "out.mat") with pytest.raises(SystemExit): > v2_main(["-D", "data,D", "--mode", "printdata", fname, fname_out]) ../../src/wield/control/fitting/SISO/test/v2/io/test_io.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../src/wield/control/fitting/SISO/v2/__main__.py:545: in IIRrationalV2fit dataB = data_load( ../../src/wield/control/fitting/SISO/v2/__main__.py:253: in data_load fdict_data = file_io.load_any( /wield/wield-utilities/src/wield/utilities/file_io/any_io.py:59: in load_any fdict = matlab_io.load_matlab(fname) /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