Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
agramfort committed Nov 27, 2015
1 parent 5d0ffc7 commit 90bd3d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/plot_spm_auditory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

import os
import os.path as op
import numpy as np
import matplotlib.pyplot as plt
import nibabel
Expand All @@ -20,9 +19,10 @@

# fetch spm auditory data
subject_data = fetch_spm_auditory()
dataset_dir = op.dirname(op.dirname(op.dirname(subject_data.anat)))
dataset_dir = \
os.path.dirname(os.path.dirname(os.path.dirname(subject_data.anat)))
output_dir = 'results'
if not op.exists(output_dir):
if not os.path.exists(output_dir):
os.mkdir(output_dir)

# construct experimental paradigm
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_spm_multimodal_faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
paradigm = DataFrame({'name': conditions, 'onset': onsets})

# build design matrix
frame_times = np.linspace(0, (n_scans - 1) * tr, n_scans)
frame_times = np.arange(n_scans) * tr
design_matrix = make_design_matrix(
frame_times, paradigm, hrf_model=hrf_model, drift_model=drift_model,
period_cut=period_cut)
Expand Down

0 comments on commit 90bd3d3

Please sign in to comment.