iqm.pulla.calibration.CalibrationDataProvider#

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

Bases: object

Access calibration info via station control client and cache data in memory.

Methods

_get_latest_calibration_set(dut_label)

get_calibration_set(cal_set_id)

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

get_calibration_set_values(calibration_set_id)

Get saved calibration set observations by UUID.

get_latest_calibration_set(chip_label)

Get the latest calibration set id for chip_label from the database, return it and the set contents.

Parameters:

station_control (StationControlInterface) –

get_calibration_set(cal_set_id)#

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

Parameters:

cal_set_id (UUID) –

Return type:

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

get_latest_calibration_set(chip_label)#

Get the latest calibration set id for chip_label from the database, return it and the set contents.

Parameters:

chip_label (str) –

Return type:

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

get_calibration_set_values(calibration_set_id)#

Get saved calibration set observations by UUID.

Parameters:

calibration_set_id (UUID) – UUID of the calibration set to retrieve.

Returns:

Dictionary of observations belonging to the given calibration set.

Return type:

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