Skip to content

Commit

Permalink
Fix to circle and example. [circle full]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeilepp committed Oct 10, 2016
1 parent bcd57d6 commit 5114e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ dependencies:
if [[ $(cat $FNAME | grep -x ".*brainstorm.*bst_phantom_elekta.*" | wc -l) -gt 0 ]]; then
python -c "import mne; print(mne.datasets.brainstorm.bst_phantom_elekta.data_path(update_path=True))" --accept-brainstorm-license;
fi;
if [[ $(cat $FNAME | grep -x ".*datasets.*megsim.*" | wc -l) -gt 0 ]]; then
python -c "import mne; print(mne.datasets.megsim.load_data(condition='visual', data_format='single-trial', data_type='simulation', update_path=True))";
python -c "import mne; print(mne.datasets.megsim.load_data(condition='visual', data_format='raw', data_type='experimental', update_path=True))";
fi;
fi;
done;
echo PATTERN="$PATTERN";
Expand Down
3 changes: 2 additions & 1 deletion examples/datasets/plot_megsim_data_single_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from mne import read_evokeds
from mne.datasets.megsim import load_data
from mne import combine_evoked

print(__doc__)

Expand All @@ -30,7 +31,7 @@
epochs_fnames = [f for f in epochs_fnames if 'sim6_trial_' in f][:10]

evokeds = [read_evokeds(f)[0] for f in epochs_fnames]
mean_evoked = sum(evokeds[1:], evokeds[0])
mean_evoked = combine_evoked(evokeds, weights='nave')

# Visualize the average
mean_evoked.plot()

0 comments on commit 5114e26

Please sign in to comment.