nibcq.calibration.Entry

class nibcq.calibration.Entry

Represents a single calibration entry in a calibration diary.

Contains the timestamp and temperature information for when a calibration was performed on a measurement device. Used to track calibration history and determine when recalibration might be needed.

timestamp

When the calibration was performed

Type:

datetime

temperature

The ambient temperature during calibration in Celsius

Type:

float

Examples

>>> entry = Entry(datetime.now(), 25.5)
>>> print(entry)
CalibrationEntry(timestamp=2025-01-01 12:00:00, temperature=25.5)
__repr__()

Return a string representation of the CalibrationEntry.

Returns:

A formatted string showing the timestamp and temperature

Return type:

str

Examples

>>> entry = Entry(datetime(2025, 1, 1, 12, 0), 25.5)
>>> repr(entry)
'CalibrationEntry(timestamp=2025-01-01 12:00:00, temperature=25.5)'