Hi, I’m trying to run the " Transform EEG data using current source density (CSD)" example in Python, but some graphs are not generated because it returns multiple AttributeErrors. I would like to know how to fix it, if I need to install another dependency or something. The errors occur on lines 53 and 54, and on lines 74 to 77.
I’ll really appreciate if anyone can help me.
lines 53 and 54:
raw.compute_psd().plot(picks=“data”, exclude=“bads”)
raw_csd.compute_psd().plot(picks=“data”, exclude=“bads”)
lines 74 to 77:
times = np.array([-0.1, 0.0, 0.05, 0.1, 0.15])
evoked_csd = mne.preprocessing.compute_current_source_density(evoked)
evoked.plot_joint(title=“Average Reference”, show=False)
evoked_csd.plot_joint(title=“Current Source Density”)