daplis_rtp.gui.single_pix_hist_tab module

This script generates the tab for single-pixel histograms.

The tab itself could be used for checking the LinoSPAD2 output for homogeneity (the histogram should be more or less flat top).

class daplis_rtp.gui.single_pix_hist_tab.SinglePixelHistogram(parent=None)[source]

Bases: QWidget

__init__(parent=None)[source]

Tab creation.

The tab is created with combo boxes for LinoSPAD2 daughterboard number and firmware version, a spin box for the number of timestamps per pixel/TDC per cycle, and a spin box for the pixel number input. A ‘browse’ button with a line edit for choosing/inserting the file address is generated. A button for refreshing the plot is generated. The figure widget size is set constant across all tabs to achieve the same look for plots. An ‘ui’ file generated with Qt5 designer is used.

change_path()[source]

Called when text is inserted to the browse line edit.

Used for updating the path variable when text is inserted into the line edit.

cycle_length_change()[source]
get_dir()[source]

Called when “browse” button is pressed.

Path to where data files are saved to. Used for file searching and selecting.

refresh_plot()[source]

Button for refreshing the plot.

Either refreshes the current plot or plots a new graph if new data were taken.

resizeEvent(self, a0: QResizeEvent | None)[source]