nibcq.calibration.Settings

class nibcq.calibration.Settings

Configuration settings for calibration validation and scheduling.

Contains the parameters that control when a device needs calibration and what temperature variations are acceptable. Used by the calibration system to determine if recalibration is required based on time elapsed and temperature changes.

temperature_delta

Maximum acceptable temperature difference in Celsius between current temperature and last calibration temperature

Type:

float

days_to_calibration

Number of days after which recalibration is required

Type:

float

Examples

>>> settings = Settings(temperature_delta=2.5, days_to_calibration=1.5)
>>> print(f"Max temp delta: {settings.temperature_delta}°C")
>>> print(f"Calibration interval: {settings.days_to_calibration} days")
__repr__()

Return a string representation of the Settings.

Returns:

A formatted string showing temperature delta and days to calibration

Return type:

str

Examples

>>> settings = Settings(2.5, 1.5)
>>> repr(settings)
'Settings(temperature_delta=2.5, days_to_calibration=1.5)'