[Mne_analysis] adding figure to report problem

Elena Orekhova orekhova.elena.v at gmail.com
Tue Apr 2 08:24:34 EDT 2019
Search archives:

        External Email - Use Caution        

Dear experts,

I can plot the figure (although it looks a bit odd, see the screenshort):
FIG3 = mne.viz.plot_alignment(raw.info, trans=trans, subject=subj,
                       surfaces='head-dense',
                       show_axes=True, dig=True, eeg=False, meg='sensors',
                       coord_frame='meg'),

but
report.add_figs_to_section(FIG3, 'helmet', section='Coregistration',
scale=None, image_format='png', comments=None, replace=True)
gives me an error:

ValueError: cannot reshape array of size 16 into shape (0,0,4)
or sometimes:
ValueError: cannot reshape array of size 12 into shape (0,0,3),
not sure what it depends on.

I am using MC OS Mojave (10.14.3),
conda 4.5.12
Python 3.7.1

What could be the problem?

-- 
Best regards,
Elena V. Orekhova
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190402/916dca68/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2019-04-02 at 15.22.22.png
Type: image/png
Size: 210109 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190402/916dca68/attachment-0001.png 


More information about the Mne_analysis mailing list