Skip to content

Commit c03e160

Browse files
authored
Merge pull request #546 from mvdbeek/rerun-invocation-input-order
Fix rerun invocation input parameter ordering
2 parents b759fab + 9a5dfe9 commit c03e160

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bioblend/galaxy/invocations/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ def rerun_invocation(
250250
raise
251251
# Galaxy release_24.1 or earlier
252252
invocation = self.show_invocation(invocation_id)
253-
workflow_step_id_to_index = {
254-
step["workflow_step_id"]: index for index, step in enumerate(invocation["steps"])
255-
}
253+
workflow_step_id_to_index = {step["workflow_step_id"]: step["order_index"] for step in invocation["steps"]}
256254
# Merge input_step_parameters (indexed by label) into inputs (indexed by step index)
257255
inputs = invocation["inputs"]
258256
for param_input_dict in invocation["input_step_parameters"].values():

0 commit comments

Comments
 (0)