sgnts.pipeline
¶
TSPipeline: a time-series-aware Pipeline for SGN-TS.
Subclasses sgn's Pipeline to expose time-series configuration — in particular the stride that all sources will use.
Example usage
from sgnts.pipeline import TSPipeline
0.5-second stride instead of the default 1 second¶
pipeline = TSPipeline(stride=0.5) pipeline.connect(src, snk).run()
TSPipeline
¶
Bases: Pipeline
flowchart TD
sgnts.pipeline.TSPipeline[TSPipeline]
click sgnts.pipeline.TSPipeline href "" "sgnts.pipeline.TSPipeline"
A Pipeline with time-series stride configuration.
This subclass of :class:sgn.apps.Pipeline provides a convenient
way to set the application stride — the amount of data (in seconds)
that each source produces per iteration. Under the hood this sets
:pyattr:Offset.SAMPLE_STRIDE_AT_MAX_RATE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stride
|
float | None
|
float, the stride in seconds that every source in the
pipeline will produce per frame. Must be positive and must
map to an integer number of samples at |
None
|