Replace .inp and .out for Node with .inputs and .outputs for CalculationNode and WorkflowNode #2569
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.
Now:
.inputs.<LABEL>
property that returnsa manager to navigate incoming INPUT_CALC nodes
.outputs.<LABEL>
property that returnsa manager to navigate outgoing CREATE nodes
.inputs.<LABEL>
property that returnsa manager to navigate incoming INPUT_WORK nodes
.outputs.<LABEL>
property that returnsa manager to navigate outgoing RETURN nodes
.inp
and.out
as these werereferring to incoming and outgoing and were ambiguous
Moreover,
Data.created_by
andProcessNode.called_by
methods werealready implemented and have been renamed to
Data.creator
andProcessNode.caller
.Also tests added for all these methods, including the already existing
ones. This fixes #2230.
Moreover,
LinkType
has been added to the classes pre-loaded inthe shell (fixes #2560), and we now ensure that
get_node_by_label
raises in case there is more than one matching node with the same label
(fixes #2558).