INode
- class gpype.backend.core.i_node.INode[source]
Bases:
INode,NodeAbstract base class for input-only nodes in the g.Pype pipeline.
Combines ioiocore.INode and Node functionality for nodes that consume input data without producing outputs (e.g., file writers, displays). Subclasses must implement the abstract step() method.
- __init__(input_ports=None, **kwargs)[source]
Initialize the INode with input port configurations.
- Parameters:
input_ports (
list[Configuration]) – List of input port configurations or None.**kwargs – Additional arguments passed to parent classes.
- setup(data, port_context_in)[source]
Setup the input node before pipeline processing begins.
Validates that all input ports have required metadata keys (frame_size, channel_count) then delegates to parent setup.
- Parameters:
- Return type:
- Returns:
Dictionary mapping port names to validated context dictionaries.
- Raises:
ValueError – If required metadata keys are missing.