Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Xing Wang <[email protected]>
  • Loading branch information
agoscinski and superstar54 authored Sep 19, 2024
1 parent 1b50529 commit a9d4cf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/gallery/howto/autogen/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def aggregate(**collected_values): # We use a keyword argument to obtain a dict
aggregate_task = wg.add_task(aggregate, name="aggregate_task")

# we have to increase the link limit because by default workgraph only supports one link per input socket
# this is still an experimental feature that is why
aggregate_task.inputs["collected_values"].link_limit = 50

for i in range(2): # this can be chosen as wanted
Expand Down Expand Up @@ -140,7 +139,7 @@ def aggregate(**collected_values):
aggregate_task = wg.add_task(aggregate, name="aggregate_task")

# we have to increase the link limit because by default workgraph only supports
# one link per input socket this is still an experimental feature that is why
# one link per input socket.
aggregate_task.inputs["collected_ints"].link_limit = 50
aggregate_task.inputs["collected_floats"].link_limit = 50

Expand Down

0 comments on commit a9d4cf8

Please sign in to comment.