pyOMA2
pyOMA2 copied to clipboard
Error after recent update
Dear @dagghe
I hope you are donig well. Unfortunately after the recent update the following error has occured: This is the code I run:
ssicov = SSIcov_algo(name="SSIcov", br=60, method='cov_mm' , ordmin=2, ordmax=200, step=2, err_fn=0.01,
err_xi=0.05, err_phi=0.02, xi_max=0.05, mpc_lim=(0.7,), mpd_lim=(0.3,))
SS.add_algorithms(ssicov)
SS.run_by_name("SSIcov")
The error occurs in this part of the Gen_funct.py:
# Checking MPC AND MPD
if mpc_lim is not None:
Mask1 = []
for o in range(Fn1.shape[0]):
for i in range(Fn1.shape[1]):
try:
Mask1.append((MPC(Ms1[o, i, :]) >= mpc_lim).astype(int))
and here's the error:
numpy.linalg.LinAlgError: Array must not contain infs or NaNs
File ~\anaconda3\Lib\site-packages\pyoma2\functions\Gen_funct.py:106 in lab_stab
Mask1 = np.array(Mask1).reshape(Fn1.shape)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (20200,) + inhomogeneous part.