for this error :
ValueError Traceback (most recent call last)
Cell In[40], line 2
1 # Convert your list (eeg_O1_data) into a NumPy array
----> 2 eeg_O1_data_array = np.array(eeg_O1_data)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (76,) + inhomogeneous part.
It happens because t the elements within the eeg_O1_data
list are not of uniform shape or type, which is causing the issue when I try to convert the list into a NumPy array.
There are 2 options to solve
1- to pad with zeros.
2- Create a List of Arrays: If preserving the original shapes of the arrays is important, I can keep them in a list. This will allow you to work with them individually without converting them into a single large array.
I want to preserve the original shapes and in the same time to create a raw object I need to convert the data into numpy array.
Please Advice me on this !!