Help! 'read_epochs_eeglab'

I get the error: “TypeError: ‘int’ object is not iterable”.I am not sure where I could be making a mistake.
my mne version is 1.3.1
windows 11
these are my codes:
import mne
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
import pickle
import pymatreader
import mffpy
#single sub evoked
eeg1 = mne.io.read_epochs_eeglab(‘1_LH.set’)

2 Likes

@lucas Hi, thanks for posting. I am not completely familiar with eeglab data. But just looking at the traceback that says the API doesn’t expect an intobject. Can you try rename your epochs file i.e., remove the ‘int’ (1) part and try to load the data again if that works? Note, I assume you have provided the full-path of your data file to load the data and not a part of it.

best,

Thanks for your reply, I try this way. But I also can not run the code! It’s a pity! If the code don’t run ,I can not continue the flowling work.And my English is poor,so hope that you don’t mind!
best

Have you solved this problem

I’m having a similar issue. Did you fix this?