Skip to content

Commit

Permalink
FIX: Fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed May 22, 2015
1 parent 82e660b commit 7ae524c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions mne/defaults.py
Expand Up @@ -11,6 +11,7 @@
emg='k', ref_meg='steelblue', misc='k', stim='k',
resp='k', chpi='k', exci='k', ias='k', syst='k',
seeg='k'),
config_opts=dict(),
units=dict(eeg='uV', grad='fT/cm', mag='fT', misc='AU',
seeg='uV'),
scalings=dict(mag=1e15, grad=1e13, eeg=1e6,
Expand Down
4 changes: 2 additions & 2 deletions mne/source_estimate.py
Expand Up @@ -1279,8 +1279,8 @@ def center_of_mass(self, subject=None, hemi=None, restrict_vertices=False,
def plot(self, subject=None, surface='inflated', hemi='lh',
colormap='auto', time_label='time=%0.2f ms',
smoothing_steps=10, transparent=None, alpha=1.0,
time_viewer=False, config_opts={}, subjects_dir=None, figure=None,
views='lat', colorbar=True, clim='auto'):
time_viewer=False, config_opts=None, subjects_dir=None,
figure=None, views='lat', colorbar=True, clim='auto'):
"""Plot SourceEstimates with PySurfer
Note: PySurfer currently needs the SUBJECTS_DIR environment variable,
Expand Down
8 changes: 5 additions & 3 deletions mne/viz/_3d.py
Expand Up @@ -29,6 +29,7 @@
from ..transforms import (read_trans, _find_trans, apply_trans,
combine_transforms, _get_mri_head_t)
from ..utils import get_subjects_dir, logger, _check_subject
from ..defaults import _handle_default
from .utils import mne_analyze_colormap, _prepare_trellis, COLORS
from ..externals.six import BytesIO

Expand Down Expand Up @@ -428,9 +429,9 @@ def _limits_to_control_points(clim, stc_data, colormap):
def plot_source_estimates(stc, subject=None, surface='inflated', hemi='lh',
colormap='auto', time_label='time=%0.2f ms',
smoothing_steps=10, transparent=None, alpha=1.0,
time_viewer=False, config_opts={}, subjects_dir=None,
figure=None, views='lat', colorbar=True,
clim='auto'):
time_viewer=False, config_opts=None,
subjects_dir=None, figure=None, views='lat',
colorbar=True, clim='auto'):
"""Plot SourceEstimates with PySurfer
Note: PySurfer currently needs the SUBJECTS_DIR environment variable,
Expand Down Expand Up @@ -506,6 +507,7 @@ def plot_source_estimates(stc, subject=None, surface='inflated', hemi='lh',
A instance of surfer.viz.Brain from PySurfer.
"""
from surfer import Brain, TimeViewer
config_opts = _handle_default('config_opts', config_opts)

import mayavi
from mayavi import mlab
Expand Down

0 comments on commit 7ae524c

Please sign in to comment.