calix.common.cadc_evaluation

Provides functions which are helpful when evaluating the success of a CADC calibration.

Functions

calix.common.cadc_evaluation.check_calibration_success(connection: pyhxcomm_vx.ConnectionHandle, builder: calix.common.base.WriteRecordingPlaybackProgramBuilder, read_data: numpy.ndarray)None

Compare the given uncalibrated reads to a new read that is done with the supplied builder/connection. Logs a warning if the deviation of reads after calibration is still high.

Parameters
  • connection – Connection to the chip to run on.

  • builder – Builder to append read instructions to.

  • read_data – Array of reads before calibration.

calix.common.cadc_evaluation.compare_results(uncalibrated_data: numpy.ndarray, calibrated_data: numpy.ndarray)None

Compare results with calibrated offset and uncalibrated reads.

Logs the mean and standard deviation of CADC reads before and after calibration.

Parameters
  • uncalibrated_data – Array of CADC samples that will be used as data before calibration.

  • calibrated_data – Array of CADC samples after calibration.