Types¤
Shared types and dataclasses used across Nominal instrumentation.
Primary entry point: BackgroundDaemonConfig.
BackgroundDaemonConfig
dataclass
¤
Measurement
dataclass
¤
Measurement(
channel_data: dict[str, list[float]],
timestamps: list[int],
tags: dict[str, str] | None = None,
)
Data structure to hold measurement data. All channels have a common timebase.
values
property
¤
When measurement is of a single channel, returns the data for that channel.
Returns:
Raises:
-
ValueError–Multiple channels present. Use channel_data directly and index for the desired channel.
latest
property
¤
When measurement is of a single channel, returns the latest data for that channel.
Returns:
Raises:
-
ValueError–Multiple channels present. Use channel_data directly and index for the desired channel.
create_timestamps_from_dt
staticmethod
¤
Create a list of timestamps based on a start time, interval, and length.
Optionally adjust t0 to be backstamped by the total duration of the measurement.
Parameters:
-
(t0¤int) –ns timestamp since epoch (e.g., time.time_ns())
-
(dt¤int) –ns interval between samples
-
(length¤int) –length of the sample set to timestamp
-
(backstamp¤bool) –Adjust t0 to be backstamped by the total duration of the measurement
Returns: