Skip to content

Commit 12df369

Browse files
authored
Merge pull request #1350 from fliem/fix-stc
[ENH] Respect SliceEncodingDirection metadata
2 parents dbaee20 + 9fdf78c commit 12df369

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.zenodo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@
8383
"affiliation": "Department of Psychology, University of Oslo",
8484
"orcid": "0000-0002-8508-9088"
8585
},
86+
{
87+
"name": "Liem, Franz",
88+
"affiliation": "University of Zurich",
89+
"orcid": "0000-0003-0646-4810"
90+
},
8691
{
8792
"name": "Poldrack, Russell A.",
8893
"affiliation": "Department of Psychology, Stanford University",

fmriprep/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
'grabbit==0.2.3',
9898
'pybids==0.6.5',
9999
'nitime',
100-
'nipype>=1.1.3',
100+
'nipype>=1.1.4',
101101
'niworkflows==0.4.4',
102102
'statsmodels',
103103
'seaborn',

fmriprep/workflows/bold/stc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def init_bold_stc_wf(metadata, name='bold_stc_wf'):
6969
slice_timing_correction = pe.Node(
7070
afni.TShift(outputtype='NIFTI_GZ',
7171
tr='{}s'.format(metadata["RepetitionTime"]),
72-
slice_timing=metadata['SliceTiming']),
72+
slice_timing=metadata['SliceTiming'],
73+
slice_encoding_direction=metadata.get('SliceEncodingDirection', 'k')),
7374
name='slice_timing_correction')
7475

7576
copy_xform = pe.Node(CopyXForm(), name='copy_xform', mem_gb=0.1)

0 commit comments

Comments
 (0)