diff --git a/examples/plot_spm_auditory.py b/examples/plot_spm_auditory.py index 4fa173b9..b31bdcbe 100644 --- a/examples/plot_spm_auditory.py +++ b/examples/plot_spm_auditory.py @@ -6,7 +6,6 @@ """ import os -import os.path as op import numpy as np import matplotlib.pyplot as plt import nibabel @@ -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 diff --git a/examples/plot_spm_multimodal_faces.py b/examples/plot_spm_multimodal_faces.py index f87dfc9b..54709174 100755 --- a/examples/plot_spm_multimodal_faces.py +++ b/examples/plot_spm_multimodal_faces.py @@ -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)