Open soso-maitha opened 2 years ago
Hello, I got this error when I tried to read .edf files from https://physionet.org/content/ucddb/1.0.0/
import mne import matplotlib.pyplot as plt from topograph import get_psds, plot_topomap data = mne.io.read_raw_edf('ucddb002_lifecard.edf') raw_data = data.get_data() ch_data = raw_data[2:16,:] pwrs, _ = get_psds(ch_data) fig, ax = plt.subplots(figsize=(10,8)) plot_topomap(pwrs, ax, fig) plt.show() fig.savefig("topograph.png", bbox_inches='tight')
Output:
Extracting EDF parameters from files/ucddb002_lifecard.edf... EDF file detected --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Input In [16], in <cell line: 7>() 3 from topograph import get_psds, plot_topomap 5 file = "ucddb002_lifecard.edf" ----> 7 data = mne.io.read_raw_edf(file) 8 print(type(data)) 10 raw_data = data.get_data() File /anaconda/envs/azureml_py38/lib/python3.8/site-packages/mne/io/edf/edf.py:1331, in read_raw_edf(input_fname, eog, misc, stim_channel, exclude, infer_types, preload, verbose)
Hello, I got this error when I tried to read .edf files from https://physionet.org/content/ucddb/1.0.0/
Output: