@@ -744,7 +744,7 @@ def valueFromFunc(k: str, v: Optional[CWLOutputType]) -> Optional[CWLOutputType]
744
744
_logger .info ("[%s] will be skipped" , step .name )
745
745
if (
746
746
step .tool .get ("loop" ) is not None
747
- and step .tool .get ("outputMethod" , "last " ) == "all "
747
+ and step .tool .get ("outputMethod" , "last_iteration " ) == "all_iterations "
748
748
):
749
749
callback ({k ["id" ]: [] for k in outputparms }, "skipped" )
750
750
else :
@@ -874,7 +874,7 @@ def _set_empty_output(self, outputMethod: str) -> None:
874
874
for i in self .step .tool ["outputs" ]:
875
875
if "id" in i :
876
876
iid = cast (str , i ["id" ])
877
- if outputMethod == "all " :
877
+ if outputMethod == "all_iterations " :
878
878
self .output_buffer [iid ] = cast (MutableSequence [Optional [CWLOutputType ]], [])
879
879
else :
880
880
self .output_buffer [iid ] = None
@@ -887,7 +887,7 @@ def job(
887
887
) -> JobsGeneratorType :
888
888
"""Generate a WorkflowJobStep job until the `when` condition evaluates to False."""
889
889
self .joborder = joborder
890
- outputMethod = self .step .tool .get ("outputMethod" , "last " )
890
+ outputMethod = self .step .tool .get ("outputMethod" , "last_iteration " )
891
891
892
892
callback = functools .partial (
893
893
self .loop_callback ,
@@ -953,14 +953,14 @@ def loop_callback(
953
953
self .iteration += 1
954
954
try :
955
955
loop = cast (MutableSequence [CWLObjectType ], self .step .tool .get ("loop" , []))
956
- outputMethod = self .step .tool .get ("outputMethod" , "last " )
956
+ outputMethod = self .step .tool .get ("outputMethod" , "last_iteration " )
957
957
state : Dict [str , Optional [WorkflowStateItem ]] = {}
958
958
for i in self .step .tool ["outputs" ]:
959
959
if "id" in i :
960
960
iid = cast (str , i ["id" ])
961
961
if iid in jobout :
962
962
state [iid ] = WorkflowStateItem (i , jobout [iid ], processStatus )
963
- if outputMethod == "all " :
963
+ if outputMethod == "all_iterations " :
964
964
if iid not in self .output_buffer :
965
965
self .output_buffer [iid ] = cast (
966
966
MutableSequence [Optional [CWLOutputType ]], []
0 commit comments