herostools.flow.dummy¶
Classes¶
Log incoming flow data and forward it unchanged. |
|
Add a constant value to incoming flow data. |
|
Apply the square root to incoming flow data. |
|
Raise incoming flow data to a configured exponent. |
Module Contents¶
- class herostools.flow.dummy.Logger(inputs: collections.abc.Mapping[str, heros.HERORef | str] | collections.abc.Sequence[heros.HERORef | str] | None = None, identifier_key: str = 'identifier', subscriber: herostools.flow._subscriber.FlowSubscriber | None = None, queue_warn_threshold: int = 100)[source]¶
Bases:
herostools.flow.NodeLog incoming flow data and forward it unchanged.
Every message is logged at INFO on purpose, since showing the data is the point of this node.
- class herostools.flow.dummy.AddConstant(constant: float = 5, **kwargs)[source]¶
Bases:
herostools.flow.NodeAdd a constant value to incoming flow data.
- constant: float¶
- class herostools.flow.dummy.Sqrt(inputs: collections.abc.Mapping[str, heros.HERORef | str] | collections.abc.Sequence[heros.HERORef | str] | None = None, identifier_key: str = 'identifier', subscriber: herostools.flow._subscriber.FlowSubscriber | None = None, queue_warn_threshold: int = 100)[source]¶
Bases:
herostools.flow.NodeApply the square root to incoming flow data.
- class herostools.flow.dummy.ToPower(exponent: float = 2, **kwargs)[source]¶
Bases:
herostools.flow.NodeRaise incoming flow data to a configured exponent.
- exponent: float¶