Dear mne python users,
When I want to plot the stc files (source estimate file )of MEG data, there is a problem as follows, does anybody meet this issues before?
thanks very much!
Best wishes,
subjects_dir = os.path.join(home_path, 'naming','FreeSurfer')
os.environ["SUBJECTS_DIR"] = subjects_dir
stc = mne.read_source_estimate(fname)
brain = stc.plot(
hemi='both', views='lateral', subjects_dir=subjects_dir, size=(800, 800),
smoothing_steps=5)
File "<ipython-input-30-f74d2a70e518>", line 3, in <module>
smoothing_steps=5)
File "/opt/anaconda2/lib/python2.7/site-packages/mne/source_estimate.py", line 1462, in plot
spacing=spacing)
File "/opt/anaconda2/lib/python2.7/site-packages/mne/viz/_3d.py", line 1817, in plot_source_estimates
subject = _check_subject(stc.subject, subject, True)
File "/opt/anaconda2/lib/python2.7/site-packages/mne/utils.py", line 2135, in _check_subject
raise ValueError('Neither subject input nor class subject '
ValueError: Neither subject input nor class subject attribute was a string
sisia