daplis_rtp.functions.calibrate module

Module for handling calibration data.

The following functions are provided:

  • calibrate_save - unpack the calibration data and save the output

calibration matrix into a ‘.csv’ file

  • calibrate_load - loads the calibration matrix from a ‘.csv’ file

daplis_rtp.functions.calibrate.calibrate_load(path, board_number: str)[source]

Function for loading the calibration data.

Parameters:
  • path (str) – Path to the .csv file with the calibration matrix.

  • board_number (str) – The LinoSPAD2 board number.

Returns:

data_matrix – Matrix of 256x140 with the calibrated data.

Return type:

ndarray

daplis_rtp.functions.calibrate.calibrate_save(path, timestamps: int = 512)[source]

Function for calculating the calibration matrix and saving it into a .csv file. The data file used for the calculation should be taken with the sensor uniformly illuminated by ambient light.

Parameters:
  • path (str) – Path to the data file.

  • timestamps (int, optional) – Number of timestamps per acquisition cycle per pixel. The default is 512.

Return type:

None.