You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, only nested dictionaries can be used to populate the parameters of a task. Support setting also from a builder (similar to submit in AiiDA, where you can provide either the class and the input parameters, or the builder).
As noted by @rikigigi, who had to first convert the builder data to a nested dictionary.
The text was updated successfully, but these errors were encountered:
Hi @GeigerJ2 , thanks for taking care of this issue. Setting task inputs from the builder is now supported in the set_from_builder method, but creating tasks from the builder has not been implemented yet.
I think we want to support syntax similar to the following code:
fromaiida.calculations.arithmetic.addimportArithmeticAddCalculationfromaiida_workgraphimportWorkGraphfromaiidaimportormbuilder=ArithmeticAddCalculation.get_builder()
builder.code=codebuilder.x=orm.Int(2)
builder.y=orm.Int(3)
wg=WorkGraph("test_set_inputs_from_builder")
# use builder to create taskadd1=wg.add_task(builder, name="add1")
Currently, only nested dictionaries can be used to populate the parameters of a task. Support setting also from a builder (similar to submit in AiiDA, where you can provide either the class and the input parameters, or the builder).
As noted by @rikigigi, who had to first convert the builder data to a nested dictionary.
The text was updated successfully, but these errors were encountered: