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 00317bc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/gallery/autogen/quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,22 @@ def multiply(x, y):
generate_node_graph(wg.pk)


######################################################################
# One can also set task inputs from an AiiDA process builder directly.
#

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 00317bc

Please sign in to comment.