tube¶
- pydantic model TubeNode[source]¶
A node that contains another tube within it.
Note
A nested tube may not return a scalar literal
Nonefrom its return node, that is interpreted as aNoEvent, as the return value ofprocessisNonewhen no events are emitted.Wrap
Nones in a dictionary return to disambiguate them.i.e. rather than:
depends: node.value
use:
depends: - something: node.value
If you have a need for returning scalar
Nones from a nested tube, please raise an issue!- Config:
extra: str = allow
- Fields:
- field spec: NodeSpecification [Required]¶
- field tube: Path | PathLike[str] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='[\\w\\-\\/#]+')])] [Required]¶
- classmethod get_signals(spec: NodeSpecification | None = None) dict[str, Signal][source]¶
Forward signals from the return node
- init(context: RunnerContext) None[source]¶
- model_post_init(_Node__context: Any) None¶
See docstring of
process()for description of post init wrapping of generators
- property tube_spec: TubeSpecification¶