Skip to content

Commit 37411dd

Browse files
committed
Editing the workflow to be compatible python 2.7/3.x
1 parent 44d01b6 commit 37411dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/workflows/smri/niftyreg/groupwise.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Including linear and non-linear image co-registration
99
'''
1010

11+
from builtins import str, range
1112
import nipype.interfaces.utility as niu
1213
import nipype.interfaces.niftyreg as niftyreg
1314
import nipype.pipeline.engine as pe
@@ -209,7 +210,7 @@ def create_nonlinear_gw_step(name="nonlinear_gw_niftyreg",
209210
workflow.connect(inputnode, 'input_aff_files', nonlin_reg, 'aff_file')
210211

211212
if demean:
212-
if 'vel_flag' in nonlinear_options_hash.keys() and \
213+
if 'vel_flag' in list(nonlinear_options_hash.keys()) and \
213214
nonlinear_options_hash['vel_flag'] is True and \
214215
initial_affines:
215216
workflow.connect(

0 commit comments

Comments
 (0)