Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 4, 2024
1 parent 69942b1 commit 2c430a0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/gallery/autogen/quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,24 @@ def multiply(x, y):
generate_node_graph(wg.pk)


######################################################################
# ------------------------------
# Set task inputs from a builder
# ------------------------------
#

from aiida.calculations.arithmetic.add import ArithmeticAddCalculation

builder = ArithmeticAddCalculation.get_builder()
builder.code = code
builder.x = Int(2)
builder.y = Int(3)

wg = WorkGraph("test_set_inputs_from_builder")
add1 = wg.add_task(ArithmeticAddCalculation, name="add1")
add1.set_from_builder(builder)


######################################################################
# Graph builder
# -------------
Expand Down

0 comments on commit 2c430a0

Please sign in to comment.