STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
series.py File Reference

Go to the source code of this file.

Namespaces

namespace  backend
namespace  backend.series

Functions

Iterator[str] backend.series.throttle (Iterable[str] chunks, int bytes_per_sec)
np.ndarray backend.series._epoch_seconds (col)
tuple[np.ndarray, str]|None backend.series.sensor_clock (str run_id, str entity)
Path backend.series._parquet_path (str run_id, str component)
tuple[np.ndarray, np.ndarray] backend.series.load_series (str run_id, str component, str time_source="sensor")
tuple[np.ndarray, np.ndarray] backend.series._slice (np.ndarray t, np.ndarray v, start, end)
tuple[np.ndarray, np.ndarray] backend.series.decimate_minmax (np.ndarray t, np.ndarray v, int max_points)
tuple[np.ndarray, np.ndarray] backend.series.decimate_discrete (np.ndarray t, np.ndarray v, int max_points)
dict backend.series.series_json (str run_id, list[str] components, start, end, int max_points, str time_source="sensor")
 backend.series.long_csv_rows (str run_id, list[str] components, start, end, str time_source="sensor")
str backend.series._csv_cell (str text)
 backend.series.wide_csv_rows (str run_id, list[str] components, start, end, str time_source="sensor")

Variables

float backend.series.SENSOR_CLOCK_TOLERANCE_S = 60.0
tuple backend.series.TIME_SOURCES = ("sensor", "db")
str backend.series.SOURCE_SENSOR = "sensor"
str backend.series.SOURCE_MONOTONIC = "monotonic"
str backend.series.SOURCE_DB = "db"