'mne.preprocessing' has no attribute 'compute_current_source_density'

External Email - Use Caution

Hello Everyone,

I was going through the application of the Laplacian filter using my own
data and the tutorial (
https://github.com/mne-tools/mnepython/blob/master/examples/preprocessing/plot_eeg_csd.py
).
However, the mne.preprocessing.compute_current_source_density() do not seem
the work.

AttributeError: module 'mne.preprocessing' has no attribute
'compute_current_source_density'

Could there be something wrong with the .py script?
Thank you very much for your help and for developing MNE!

*Fran?ois Foerster, Ph.D*
*French National Institute of Health and Medical Research*
*Strasbourg, France*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200411/e6c96390/attachment.html

External Email - Use Caution

Dear Fran?ois,

make sure your version of mne python is recent enough.

to check you can do from a terminal

mne sys_info

from python

mne.sys_info()

compute_current_source_density appeared in version 0.20 that was
released a few days ago.

Alex

External Email - Use Caution

Indeed, I wasn't up to date, did not notice the last version!

Thank you so much.
All the best,

*Fran?ois Foerster, Ph.D*
*French National Institute of Health and Medical Research*
*Strasbourg, France*