@@ -1163,7 +1163,7 @@ def Workflow(x, y):
11631163 mult = workflow .add (Multiply (x = add2x .out , y = add2y .out ))
11641164 return mult .out
11651165
1166- wf = Workflow .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine ("x" )
1166+ wf = Workflow () .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine ("x" )
11671167
11681168 with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
11691169 results = sub (wf )
@@ -1186,8 +1186,8 @@ def test_wf_3nd_ndst_2(plugin, tmpdir):
11861186
11871187 @workflow .define
11881188 def Workflow (x , y ):
1189- add2x = workflow .add (Add2 ().split ("x" , x = x ))
1190- add2y = workflow .add (Add2 ().split ("x" , x = y ))
1189+ add2x = workflow .add (Add2 ().split ("x" , x = x ), name = "add2x" )
1190+ add2y = workflow .add (Add2 ().split ("x" , x = y ), name = "add2y" )
11911191 mult = workflow .add (Multiply (x = add2x .out , y = add2y .out ).combine ("add2x.x" ))
11921192 return mult .out
11931193
@@ -1215,7 +1215,7 @@ def Workflow(x, y):
12151215 mult = workflow .add (Multiply (x = add2x .out , y = add2y .out ))
12161216 return mult .out
12171217
1218- wf = Workflow .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine ("y" )
1218+ wf = Workflow () .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine ("y" )
12191219
12201220 with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
12211221 results = sub (wf )
@@ -1245,7 +1245,7 @@ def Workflow(x, y):
12451245
12461246 wf = Workflow (x = [1 , 2 , 3 ], y = [11 , 12 ])
12471247
1248- with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
1248+ with Submitter (worker = "debug" , cache_dir = tmpdir ) as sub :
12491249 results = sub (wf )
12501250
12511251 assert not results .errored , "\n " .join (results .errors ["error message" ])
@@ -1268,7 +1268,7 @@ def Workflow(x, y):
12681268 mult = workflow .add (Multiply (x = add2x .out , y = add2y .out ))
12691269 return mult .out
12701270
1271- wf = Workflow .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine (["x" , "y" ])
1271+ wf = Workflow () .split (["x" , "y" ], x = [1 , 2 , 3 ], y = [11 , 12 ]).combine (["x" , "y" ])
12721272
12731273 with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
12741274 results = sub (wf )
@@ -1322,7 +1322,11 @@ def Workflow(x, y, z):
13221322 addvar = workflow .add (FunAddVar3 (a = add2x .out , b = add2y .out , c = z ))
13231323 return addvar .out
13241324
1325- wf = Workflow .split (["x" , "y" , "z" ], x = [2 , 3 ], y = [11 , 12 ], z = [10 , 100 ]).combine ("y" )
1325+ wf = (
1326+ Workflow ()
1327+ .split (["x" , "y" , "z" ], x = [2 , 3 ], y = [11 , 12 ], z = [10 , 100 ])
1328+ .combine ("y" )
1329+ )
13261330
13271331 with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
13281332 results = sub (wf )
@@ -1828,7 +1832,7 @@ def test_wf_ndst_singl_1(plugin, tmpdir):
18281832
18291833 @workflow .define
18301834 def Workflow (x , y ):
1831- mult = workflow .add (Multiply (y = y ).split ("x" , x = x ))
1835+ mult = workflow .add (Multiply (y = y ).split ("x" , x = x ), name = "mult" )
18321836 add2 = workflow .add (Add2 (x = mult .out ).combine ("mult.x" ))
18331837 return add2 .out
18341838
@@ -1855,7 +1859,7 @@ def Workflow(x, y):
18551859 mult = workflow .add (Multiply (x = add2x .out , y = add2y .out ))
18561860 return mult .out
18571861
1858- wf = Workflow .split ("x" , x = [1 , 2 , 3 ], y = 11 )
1862+ wf = Workflow () .split ("x" , x = [1 , 2 , 3 ], y = 11 )
18591863
18601864 with Submitter (worker = plugin , cache_dir = tmpdir ) as sub :
18611865 results = sub (wf )
0 commit comments