Skip to content

Commit 8a16650

Browse files
committed
fix afni.SkullStrip with AFNI >= 16.2.07
1 parent 44b4880 commit 8a16650

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,11 +2146,12 @@ class SkullStrip(AFNICommand):
21462146

21472147
def __init__(self, **inputs):
21482148
super(SkullStrip, self).__init__(**inputs)
2149+
21492150
if not no_afni():
21502151
v = Info.version()
21512152

2152-
# As of AFNI 16.0.00, redirect_x is not needed
2153-
if v[0] > 2015:
2153+
# Between AFNI 16.0.00 and 16.2.07, redirect_x is not needed
2154+
if v >= (2016, 0, 0) and v < (2016, 2, 7):
21542155
self._redirect_x = False
21552156

21562157

0 commit comments

Comments
 (0)