Steps and/or code to reproduce
Sorry for not providing a fully reproducible code, but I think the problem is quite clear here. I tried to plot sources with a MixedSourceEstimate using
stc.plot_surface(views='lat', hemi='split', src=mne.SourceSpaces(src[:2]), subject='sample',
subjects_dir=atlas_dir, colorbar=False, clim=clim, colormap=colormap)
and I got:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-72-14b84a8a0864> in <module>
----> 7 subjects_dir=atlas_dir, #initial_time=max_t, colorbar=False, clim=clim, colormap=colormap)
10 screenshot = brain.screenshot()
11 brain.close()
~/mne-python/mne/source_estimate.py in plot_surface(self, src, subject, surface, hemi, colormap, time_label, smoothing_steps, transparent, alpha, time_viewer, config_opts, subjects_dir, figure, views, colorbar, clim)
2240 config_opts=config_opts,
2241 subjects_dir=subjects_dir, figure=figure,
-> 2242 views=views, colorbar=colorbar, clim=clim)
2243
2244
TypeError: plot_source_estimates() got an unexpected keyword argument 'config_opts'
And sure enough, on the current dev code at line 2257 of mne/source_estimate.py:
return plot_source_estimates(stc, subject, surface=surface, hemi=hemi,
colormap=colormap, time_label=time_label,
smoothing_steps=smoothing_steps,
transparent=transparent, alpha=alpha,
time_viewer=time_viewer,
config_opts=config_opts,
subjects_dir=subjects_dir, figure=figure,
views=views, colorbar=colorbar, clim=clim)
and at line 1540 of mne/viz/_3d.py
def plot_source_estimates(stc, subject=None, surface='inflated', hemi='lh',
colormap='auto', time_label='auto',
smoothing_steps=10, transparent=True, alpha=1.0,
time_viewer=False, subjects_dir=None, figure=None,
views='lat', colorbar=True, clim='auto',
cortex="classic", size=800, background="black",
foreground="white", initial_time=None,
time_unit='s', backend='auto', spacing='oct6',
title=None, verbose=None):
Unless I am missing something, this code is broken...
Steps and/or code to reproduce
Sorry for not providing a fully reproducible code, but I think the problem is quite clear here. I tried to plot sources with a MixedSourceEstimate using
and I got:
And sure enough, on the current dev code at line 2257 of mne/source_estimate.py:
and at line 1540 of mne/viz/_3d.py
Unless I am missing something, this code is broken...