I am trying to loop through four separate time windows to utilize time as a feature for EEG data analysis but cannot figure out how to loop through the 4 time bins. I have included pictures of where the time bins are establish and the loop 1&2
I have also tried reorganizing the for loop like this: for t in range(0,nTrainBin): trainData = np.full((len(chanList),nEv,config.nF,nTrainBin),np.nan)
if trainBin[t][0] == trainBin[t][1]:
trainData = zpower[:,:,:,trainBin[t][0]]
else:
if using_one_band == 1:
trainData[c,:,t] = zpower[c,:,trainBin[t]], axis=2
else:
trainData[c,:,:,t] = zpower[c,:,:,trainBin[t]], axis=3
but am getting the error: "cannot unpack non-iterable int object" and am not sure why