iqm.cpc.compiler.station_settings.find_observation

iqm.cpc.compiler.station_settings.find_observation#

iqm.cpc.compiler.station_settings.find_observation(observation_path, calibration_set, *, required=True)#

Return the value of the given calibration observation, or raise an error.

Parameters:
  • observation_path (str) – observation we want to find in calibration_set

  • calibration_set (dict[str, ObservationValue]) – mapping of observation paths to observation values

  • required (bool) – iff True and the observation cannot be found, raise an error

Returns:

value of the observation, or None if not found

Raises:

CalibrationErrorrequired is True and the observation cannot be found in calibration_set

Return type:

ObservationValue