-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test for the normal task, vector socket, get_or_create_code, test_get_parent_workgraphs, test_generate_node_graph, widget * Remove unused code * fix max number of running processes * fix organize_nested_inputs * remove append in the awaitable manager * increase check interval to fix unstable `play` and `pause` test
- Loading branch information
1 parent
512d1a8
commit 7f87a26
Showing
28 changed files
with
367 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,4 +135,5 @@ dmypy.json | |
tests/work | ||
/tests/**/*.png | ||
/tests/**/*txt | ||
.vscode/ | ||
/tests/**/*html | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,5 @@ | ||
from aiida.engine import WorkChain | ||
from aiida import orm | ||
from aiida.engine.processes.workchains.workchain import WorkChainSpec | ||
|
||
|
||
def select(condition, true, false): | ||
"""Select the data based on the condition.""" | ||
if condition: | ||
return true | ||
return false | ||
|
||
|
||
class GatherWorkChain(WorkChain): | ||
@classmethod | ||
def define(cls, spec: WorkChainSpec) -> None: | ||
"""Define the process specification.""" | ||
|
||
super().define(spec) | ||
spec.input_namespace( | ||
"datas", | ||
dynamic=True, | ||
help=('Dynamic namespace for the datas, "{key}" : {Data}".'), | ||
) | ||
spec.outline( | ||
cls.gather, | ||
) | ||
spec.output( | ||
"result", | ||
valid_type=orm.List, | ||
required=True, | ||
help="A list of the uuid of the outputs.", | ||
) | ||
|
||
def gather(self) -> None: | ||
datas = self.inputs.datas.values() | ||
uuids = [data.uuid for data in datas] | ||
# uuids = gather(uuids) | ||
self.out("result", orm.List(uuids).store()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.