nibcq.temperature.CenteredRange

class nibcq.temperature.CenteredRange

A container what stores a range, defined by a center value, and a ± delta from it.

This is used for example to track the current temperature reading along with the acceptable temperature delta for compensation validation.

center

A value representing the center of the range. None if the range is not set.

Type:

float

delta

The acceptable deviation from the center value. None if the range is not set.

Type:

float

Examples

>>> param = CenteredRange(25.5, 2.0)
>>> print(f"Temperature: {param.center}°C ±{param.delta}°C")