Skip to content

Commit

Permalink
make more use of subj variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jun 6, 2019
1 parent ff80732 commit 5e73f62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/inverse/plot_dics_source_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
# Reading the raw data and creating epochs:
data_path = somato.data_path()
subj = 'sub-01'
raw_fname = op.join(data_path, subj, 'meg', 'sub-01_task-somato_meg.fif')
raw_fname = op.join(data_path, subj, 'meg',
'{}_task-somato_meg.fif'.format(subj))

raw = mne.io.read_raw_fif(raw_fname)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
Cambrdige University Press, Chapter 11.2.
"""
# Authors: Denis A. Engemann <denis.engemann@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
import os.path as op
Expand All @@ -59,7 +60,8 @@
# Set parameters
data_path = somato.data_path()
subj = 'sub-01'
raw_fname = op.join(data_path, subj, 'meg', 'sub-01_task-somato_meg.fif')
raw_fname = op.join(data_path, subj, 'meg',
'{}_task-somato_meg.fif'.format(subj))

# let's explore some frequency bands
iter_freqs = [
Expand Down
5 changes: 4 additions & 1 deletion tutorials/time-freq/plot_sensors_time_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
desynchronizations (ERD) in the beta band.
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
import os.path as op
Expand All @@ -28,7 +29,9 @@
###############################################################################
# Set parameters
data_path = somato.data_path()
raw_fname = op.join(data_path, 'sub-01', 'meg', 'sub-01_task-somato_meg.fif')
subj = 'sub-01'
raw_fname = op.join(data_path, subj, 'meg',
'subj_task-somato_meg.fif'.format(subj))

# Setup for reading the raw data
raw = mne.io.read_raw_fif(raw_fname)
Expand Down

0 comments on commit 5e73f62

Please sign in to comment.