[Mne_analysis] Plotting Dipole orientations with MNE 15.0

nithya nithyar89 at gmail.com
Tue Oct 31 12:55:19 EDT 2017
Search archives:

It worked! Thanks!


On Tue, Oct 31, 2017 at 2:30 AM, Alexandre Gramfort <
alexandre.gramfort at inria.fr> wrote:

> hi Nithya,
>
> you need to update your pysurfer
>
> pip install -U pysurfer
>
> let us know if it does not fix the problem.
>
> ALex
>
> On Tue, Oct 31, 2017 at 12:58 AM, nithya <nithyar89 at gmail.com> wrote:
>
>> Hi
>>
>> I am trying to compute and plot the orientation of the dipoles and i have been following the tutorial.
>>
>>
>> stc_vec = apply_inverse(evoked, inverse_operator, lambda2,
>>                         method=method, pick_ori='vector')
>>
>> The above computes fine, and gives me the stc_vec file. I am using dSPM for method and my snr = 1.
>> lambda2 = 1. / snr ** 2
>>
>> The previous source estimate plots on the individual brain and average brain are all fine.
>>
>> However, when i plot the stc_vec,
>>
>> stc_vec.plot(hemi='rh', subjects_dir=subjects_dir,
>>              clim=dict(kind='value', lims=[8, 12, 15]),
>>              initial_time=time_max, time_unit='s')
>>
>> it gives me the following error.
>> Traceback (most recent call last):
>>
>>   File "<ipython-input-35-a9e583e7e67f>", line 3, in <module>
>>     initial_time=time_max, time_unit='s')
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/source_estimate.py", line 1978, in plot
>>     initial_time=initial_time, time_unit=time_unit
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py", line 2053, in plot_vector_source_estimates
>>     initial_time, ad_kwargs, sd_kwargs = _get_ps_kwargs(initial_time, '0.8')
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py", line 1919, in _get_ps_kwargs
>>     require, surfer.__version__)
>>
>> TypeError: not enough arguments for format string
>>
>> Traceback (most recent call last):
>>
>>   File "<ipython-input-35-a9e583e7e67f>", line 3, in <module>
>>     initial_time=time_max, time_unit='s')
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/source_estimate.py", line 1978, in plot
>>     initial_time=initial_time, time_unit=time_unit
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py", line 2053, in plot_vector_source_estimates
>>     initial_time, ad_kwargs, sd_kwargs = _get_ps_kwargs(initial_time, '0.8')
>>
>>   File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py", line 1919, in _get_ps_kwargs
>>     require, surfer.__version__)
>>
>> TypeError: not enough arguments for format string
>>
>> Regards
>>
>> Nithya
>>
>>
>>
>>
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171031/c48aae53/attachment.html 


More information about the Mne_analysis mailing list