daplis_rtp.gui.tabs.full_sensor module
Full Sensor: both halves of the LinoSPAD2 sensor, 512 pixels at once.
Two boards, each writing into a directory of its own, plotted end to end with a dashed line marking the seam. Pixel-address correction is always applied to board 2 and never to board 1, as the sensor geometry requires, so no switch is offered for it; the same holds for the absolute timestamps, which full-sensor data are always collected with because they are what synchronizes the two halves.
Both browse rows are used here, which is why every other tab reserves two as well: the plot has to begin at the same height on all five.
- class daplis_rtp.gui.tabs.full_sensor.LinoSPAD2Dual(parent=None)[source]
Bases:
PlotTabPhoton rate across both sensor halves, from two boards at once.
- canvas_class
alias of
DualSensorCanvas
- hint_text = 'Both sensor halves end to end, from two boards writing in step. Board 2 is always address-corrected; Ctrl+click a pixel to mask it.'
- plotted_data()[source]
The numbers behind the plot, for File -> Export.
Returns
Nonewhen there is nothing to export, or a dict:stemA suggested file name, without an extension.
columnsOrdered
{heading: 1-D array}; every column the same length.notesLines describing where the numbers came from, written into the file as
#comments so that a plot found on a disk six months later can still say what it was.
- presetmask_pixels()[source]
Apply each board’s recorded warm-pixel mask, or lift them.
Each board uses the shared daughterboard and its own motherboard to look up its file. A board with no mask recorded is skipped silently; the warning comes only when neither has one, since one board masked and the other not is a perfectly ordinary state.
- report_occupancy(fw_ver, occupancy_1, occupancy_2)[source]
Hand one refresh’s slot occupancy to the status box.
The pixels of interest are given on the 0-511 x-axis of this tab, so each board takes the part of them that falls on its own half and maps it to TDCs with the
pix_add_fixits rates were built with - always off for board 1 and on for board 2.
- session_scope = 'full_sensor'