@@ -71,19 +71,19 @@ def test_clone_node_iterables(tmpdir):
71
71
tmpdir .chdir ()
72
72
73
73
def addstr (string ):
74
- return ('%s+ 2' % string )
74
+ return ('%s + 2' % string )
75
75
76
76
subject_list = ['sub-001' , 'sub-002' ]
77
- inputnode = pe .Node (niu .IdentityInterface (fields = ['subject' ]),
78
- name = 'inputnode' )
77
+ inputnode = pe .Node (niu .IdentityInterface (fields = ['subject' ]),
78
+ name = 'inputnode' )
79
79
inputnode .iterables = [('subject' , subject_list )]
80
80
81
81
node_1 = pe .Node (niu .Function (input_names = 'string' ,
82
- output_names = 'string' ,
83
- function = addstr ),name = 'node_1' )
82
+ output_names = 'string' ,
83
+ function = addstr ), name = 'node_1' )
84
84
node_2 = node_1 .clone ('node_2' )
85
85
86
86
workflow = pe .Workflow (name = 'iter_clone_wf' )
87
- workflow .connect ([(inputnode , node_1 , [('subject' ,'string' )]),
88
- (node_1 , node_2 , [('string' ,'string' )])])
87
+ workflow .connect ([(inputnode , node_1 , [('subject' , 'string' )]),
88
+ (node_1 , node_2 , [('string' , 'string' )])])
89
89
workflow .run ()
0 commit comments