2525def test_1mod (iterables , expected ):
2626 pipe = pe .Workflow (name = "pipe" )
2727 mod1 = pe .Node (interface = EngineTestInterface (), name = "mod1" )
28- setattr ( mod1 , " iterables" , iterables ["1" ])
28+ mod1 . iterables = iterables ["1" ]
2929 pipe .add_nodes ([mod1 ])
3030 pipe ._flatgraph = pipe ._create_flat_graph ()
3131 pipe ._execgraph = pe .generate_expanded_graph (deepcopy (pipe ._flatgraph ))
@@ -49,7 +49,7 @@ def test_2mods(iterables, expected):
4949 mod1 = pe .Node (interface = EngineTestInterface (), name = "mod1" )
5050 mod2 = pe .Node (interface = EngineTestInterface (), name = "mod2" )
5151 for nr in ["1" , "2" ]:
52- setattr ( eval ("mod" + nr ), " iterables" , iterables [nr ])
52+ eval ("mod" + nr ). iterables = iterables [nr ]
5353 pipe .connect ([(mod1 , mod2 , [("output1" , "input2" )])])
5454 pipe ._flatgraph = pipe ._create_flat_graph ()
5555 pipe ._execgraph = pe .generate_expanded_graph (deepcopy (pipe ._flatgraph ))
@@ -87,7 +87,7 @@ def test_3mods(iterables, expected, connect):
8787 mod2 = pe .Node (interface = EngineTestInterface (), name = "mod2" )
8888 mod3 = pe .Node (interface = EngineTestInterface (), name = "mod3" )
8989 for nr in ["1" , "2" , "3" ]:
90- setattr ( eval ("mod" + nr ), " iterables" , iterables [nr ])
90+ eval ("mod" + nr ). iterables = iterables [nr ]
9191 if connect == ("1-2" , "2-3" ):
9292 pipe .connect (
9393 [
0 commit comments