[Mne_analysis] Vizualisation, niBabel error, deprecated

Kirill Elin ekirling at gmail.com
Wed Mar 4 15:14:18 EST 2020
Search archives:

        External Email - Use Caution        

Dear all,
I have a following issue
When I use e.g,
mne.viz.plot_bem(subject=subject, subjects_dir=subjects_dir,
                 brain_surfaces='white', orientation='coronal')
I get now following output with errors errors:
Using surface:
C:/Users/ekirl/OneDrive/Documents/MNE/mri/04SMFS\bem\inner_skull.surf
Using surface:
C:/Users/ekirl/OneDrive/Documents/MNE/mri/04SMFS\bem\outer_skull.surf
Using surface:
C:/Users/ekirl/OneDrive/Documents/MNE/mri/04SMFS\bem\outer_skin.surf
C:\Users\ekirl\Anaconda3\lib\site-packages\mne\viz\misc.py:307:
DeprecationWarning: get_data() is deprecated in favor of get_fdata(), which
has a more predictable return type. To obtain get_data() behavior going
forward, use numpy.asanyarray(img.dataobj).

* deprecated from version: 3.0
* Will raise <class 'nibabel.deprecator.ExpiredDeprecationError'> as of
version: 5.0
  data = nim.get_data()
Traceback (most recent call last)
etc...

What can be done here?

I use mne 19.0.2, niBabel 3.0.0, Python 3.7.2
The same error on both Mac and Windows
Thank you in advance.
Sincerely yours,
Kirill Elin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200304/23cd5a89/attachment-0001.html 


More information about the Mne_analysis mailing list