ts_benchmark.data.suites package
ts_benchmark.data.suites.global_storage module
Functions
|
Sets the global data pool for the worker and synchronizes data from the global storage |
Classes
|
A simple DataPool that retrieves all data from the globals storage at once |
|
A fake data server that share all available data at once |
- class GlobalStorageDataPool(storage: SharedStorage)[source]
Bases:
DataPoolImplA simple DataPool that retrieves all data from the globals storage at once
- get_series(name: str) pandas.DataFrame | None[source]
Gets the time series from the global storage
NOTE the data in the global storage is considered READ-ONLY, DO NOT perform inplace operations on the return value.
- Parameters:
name – The name of the series to get.
- Returns:
A time series in DataFrame format.
- get_series_meta_info(name: str) pandas.Series | None[source]
Gets the time series meta-info from the global storage
NOTE the data in the global storage is considered READ-ONLY, DO NOT perform inplace operations on the return value.
- Parameters:
name – The name of the series to get.
- Returns:
The meta-info of a time series in Series format.
- class GlobalStorageDataServer(data_src: DataSource, backend: ParallelBackend)[source]
Bases:
DataServerA fake data server that share all available data at once
Users must ensure all target data are loaded in the data source before starting this server.