Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixnifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def set_nifti_params(img,
if not qform is None:
hdr.set_qform(qform)
if not TR is None:
hdr['pixdim'][4] = 1.5
hdr['pixdim'][4] = TR
if not slice_axis is None:
hdr.set_dim_info(slice=slice_axis)
if not slice_times is None:
Expand Down
2 changes: 1 addition & 1 deletion fixup_openfmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main():
for run in subject['functionals']:
fname = run['filename']
print("Fixing functional " + fname)
fixnifti.fixup_nifti_file(filename, 'f', TR, SLICE_AXIS, slice_times)
fixnifti.fixup_nifti_file(fname, 'f', TR, SLICE_AXIS, slice_times)
for anat_fname in subject['anatomicals']:
print("Fixing anatomical " + anat_fname)
fixnifti.fixup_nifti_file(anat_fname)
Expand Down
3 changes: 2 additions & 1 deletion test_openfmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

from openfmri import get_subjects

FILEROOT = abspath(expanduser(pjoin('~', 'data', 'ds105')))
FILEROOT = abspath(expanduser(pjoin('~', 'Science', 'fmri_class', 'data',
'ds105')))
SUBJ_NAMES = ['sub%03d' % i for i in range(1, 7)]

from nose.tools import assert_equal, assert_true
Expand Down