Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just a hack to test the technical feasibility to reuse the orm.Groups in WorkChain. In the end we want to design a custom data type for it that is separate from this Group but it seems we can reuse a lot of code from orm.Group since it works.
So this PR works one also has to comment out the port validation in plumpy
https://github.com/aiidateam/plumpy/blob/3c8d17a273b38c79248b75a0814b472915ec2465/src/plumpy/processes.py#L789-L792
https://github.com/aiidateam/plumpy/blob/3c8d17a273b38c79248b75a0814b472915ec2465/src/plumpy/processes.py#L1404-L1406
Side note the workchain I implemented should not be later on not possible since the same node is mutated returned. Both should not be possible in an implementation but here I just wanted to have an easy operation that manipulates a group and returns it. Because the labels it is a bit annoying to create a new group.