Skip to content

Commit

Permalink
[Doc] Small fix in the variable name (#394)
Browse files Browse the repository at this point in the history
Changing a variable name to avoid the override of the task object used to decorate the python functions.
  • Loading branch information
mikibonacci authored Jan 17, 2025
1 parent 7a6291b commit 34e32bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gallery/howto/autogen/graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ def for_loop(nb_iterations: Int):


wg = WorkGraph("Nested workflow: For")
task = wg.add_task(for_loop, nb_iterations=Int(2))
loop_task = wg.add_task(for_loop, nb_iterations=Int(2))
wg.to_html()

# %%
# Running the workgraph.

wg.submit(wait=True)
print("Output of last task", task.outputs.result.value) # 1 + 1 result
print("Output of last task", loop_task.outputs.result.value) # 1 + 1 result

# %%
# Plotting provenance
Expand Down

0 comments on commit 34e32bd

Please sign in to comment.