iqm.pulla.calibration.CalibrationDataProvider#

class iqm.pulla.calibration.CalibrationDataProvider(iqm_server_client)#

Bases: object

Access calibration info via IQM Server and cache data in memory.

Methods

_get_calibration_set_values(calibration_set_id)

Get saved calibration set observations by UUID.

get_calibration_set_values(calibration_set_id)

Get the calibration set contents from the database and cache it.

get_default_calibration_set()

Get the default calibration set id from the database, return it and the set contents.

Parameters:

iqm_server_client (_IQMServerClient)

get_calibration_set_values(calibration_set_id)#

Get the calibration set contents from the database and cache it.

Parameters:

calibration_set_id (UUID)

Return type:

dict[str, bool | str | int | float | complex | ndarray]

get_default_calibration_set()#

Get the default calibration set id from the database, return it and the set contents.

Return type:

tuple[dict[str, bool | str | int | float | complex | ndarray], UUID]