shyft.dashboard.time_series.sources.ts_adapter¶
Classes
|
This class is the most basic implementation of a TsAdapter which takes a TimeSeries and returns its evaluation when called |
This object defines the data for a data source. |
- class shyft.dashboard.time_series.sources.ts_adapter.TsAdapter[source]¶
Bases:
ABCThis object defines the data for a data source. With the __call__ data for a given time axis and unit can be provided to be viewed by the ts viewer. The call method must return a Unit annotated TsVector with the time series to show.
- class shyft.dashboard.time_series.sources.ts_adapter.BasicTsAdapter(data, unit_registry, unit)[source]¶
Bases:
TsAdapterThis class is the most basic implementation of a TsAdapter which takes a TimeSeries and returns its evaluation when called
- Parameters:
data (TimeSeries | TsVector | Quantity)
unit (str)
- __init__(data, unit_registry, unit)[source]¶
- Parameters:
data (TimeSeries | TsVector | Quantity)
unit (str)