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
I wanted to run the script on my data but always got the error
"ValueError: zero-size array to reduction operation minimum which has no identity" in line 107 of ampd.py
The issue is that the largest value in G (for my data) is the first one and thus l_scale = np.argmax(G)
leads to l_scale = 0
In line 107 the array LSM is reduced to LSM[0:l_scale, :]
But as l_scale = 0 this leads to an empty array and an error when trying to to use np.min on it.
I think line 107 should be pks_logical = np.min(LSM[0:l_scale+1, :], axis=0)
The text was updated successfully, but these errors were encountered:
I wanted to run the script on my data but always got the error
"ValueError: zero-size array to reduction operation minimum which has no identity" in line 107 of ampd.py
The issue is that the largest value in G (for my data) is the first one and thus
l_scale = np.argmax(G)
leads to l_scale = 0
In line 107 the array LSM is reduced to
LSM[0:l_scale, :]
But as l_scale = 0 this leads to an empty array and an error when trying to to use np.min on it.
I think line 107 should be
pks_logical = np.min(LSM[0:l_scale+1, :], axis=0)
The text was updated successfully, but these errors were encountered: