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
Hi,
I’m trying to apply a FOOOFGroup method on a matrix of 20 PSD with 201 point of frequencies.
My datas are a PSD array (20,201) and frequencies array (201,).
When i’m runing the ‘fg.group_results’ i’v this kind of message - that i also have when i run in details the ‘get_params’ function ‘peak_params’. That’s not occurs with the ‘aperiodic_params’ and ‘exponent’.
FOOOF fg.get_params(‘peak_params’)
File ~/Applications/MNE-Python/1.5.1_0/.mne-python/lib/python3.11/site-packages/fooof/objs/group.py:379 in get_params
out = np.array([np.insert(getattr(data, name), 3, index, axis=1)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (20,) + inhomogeneous part.
Do you have idea of what i'm doing wrong to get this kind of error?
Thanks you very much
Clémence
The text was updated successfully, but these errors were encountered:
Hey @Clemencegdx - I think this is the same issue as in #313. Long story short, if you check your fooof version and update to 1.1, this should be updated and fixed (perhaps also check and update your version of numpy).
Hi,
I’m trying to apply a FOOOFGroup method on a matrix of 20 PSD with 201 point of frequencies.
My datas are a PSD array (20,201) and frequencies array (201,).
When i’m runing the ‘fg.group_results’ i’v this kind of message - that i also have when i run in details the ‘get_params’ function ‘peak_params’. That’s not occurs with the ‘aperiodic_params’ and ‘exponent’.
FOOOF fg.get_params(‘peak_params’)
File ~/Applications/MNE-Python/1.5.1_0/.mne-python/lib/python3.11/site-packages/fooof/objs/group.py:379 in get_params
out = np.array([np.insert(getattr(data, name), 3, index, axis=1)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (20,) + inhomogeneous part.
Do you have idea of what i'm doing wrong to get this kind of error?
Thanks you very much
Clémence
The text was updated successfully, but these errors were encountered: