Skip to content

Commit

Permalink
Add wf check
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Jan 26, 2024
1 parent 0c0d5c5 commit ea3da68
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions example/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,36 @@
"code.computer.label"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"from aiida.plugins import WorkflowFactory\n",
"wf = WorkflowFactory('aimall.g16opt')"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'G16OptWorkchain'"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wf.get_name()"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
3 changes: 2 additions & 1 deletion tests/controllers/test_g16fragcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ def test_g16frag_controller(fixture_code):
struct.store()
struct.base.extras.set("smiles", "unique")
gr.add_nodes(struct)
ins, _ = con.get_inputs_and_processclass_from_extras(extras_values=["unique"])
ins, wf = con.get_inputs_and_processclass_from_extras(extras_values=["unique"])
assert isinstance(ins, dict)
assert "frag_label" in ins
assert "fragment_dict" in ins
assert "g16_code" in ins
assert "g16_opt_params" in ins
assert wf.get_name() == "G16OptWorkchain"
# pylint:disable=no-member
# assert isinstance(wfs, aiida_aimall.workchains.G16OptWorkchain)
# pylint:disable=no-member

0 comments on commit ea3da68

Please sign in to comment.