daplis_rtp.functions.sen_pop module
Module for collecting number of timestamps in each pixel.
Works with firmware versions 2212b and 2212s.
The following functions are provided.
sen-pop - collects the number of timestamps in each pixel for the
data file provided and returns it as an array.
- daplis_rtp.functions.sen_pop.sen_pop(file, board_number, fw_ver, timestamps: int = 512, pix_add_fix: bool = False, absolute_timestamps: bool = False, return_occupancy: bool = False)[source]
Collect number of timestamps in each pixel.
The output is used for plotting the sensor population. Works with firmware versions 2212b and 2212s.
- Parameters:
file (str) – Address of the data file.
board_number (str) – LinoSPAD2 daughterboard number.
fw_ver (str) – LinoSPAD2 firmware version, ‘2212b’ or ‘2212s’.
timestamps (int, optional) – Number of timestamps per TDC per acquisition cycle, by default 512.
pix_add_fix (bool, optional) – Switch for correcting the pixel addressing of the sensor half, by default False.
absolute_timestamps (bool, optional) – Indicator for data files collected with absolute timestamps, by default False.
return_occupancy (bool, optional) – Also return how much of the TDC slot memory the file used, as an ‘Occupancy’. Computed from the same unpacked matrix as the rates, so it costs no extra read of the file. By default False.
- Returns:
rates (array-like) – Photon rate in each pixel, in Hz.
occupancy (Occupancy) – Only when ‘return_occupancy’ is set: slots used per TDC per acquisition cycle. See ‘daplis_rtp.functions.tdc_occupancy’.