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'm trying to read EEG signals and I'm quite new to this field. I ran the following script.
f = pyedflib.EdfReader("chb01_01.edf")
print(f)
n = f.signals_in_file
print("number of signals in file:", n)
signal_labels = f.getSignalLabels()
print("signal_labels:", signal_labels)
It worked fine when I ran it for the first time. However, if I run it again, I get the following error:
IOError: file has already been opened
I have tried inserting 1. f._close() 2. f._close() followed by del f, after the print("signal_labels..... ) function but failed. Is there a way to fix this error? Thanks a lot
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to read EEG signals and I'm quite new to this field. I ran the following script.
f = pyedflib.EdfReader("chb01_01.edf")
print(f)
n = f.signals_in_file
print("number of signals in file:", n)
signal_labels = f.getSignalLabels()
print("signal_labels:", signal_labels)
It worked fine when I ran it for the first time. However, if I run it again, I get the following error:
IOError: file has already been opened
I have tried inserting 1. f._close() 2. f._close() followed by del f, after the print("signal_labels..... ) function but failed. Is there a way to fix this error? Thanks a lot
The text was updated successfully, but these errors were encountered: