daplis_rtp.gui.tabs.online_plot module
Online plot: sensor population of one board, refreshed as files land.
The tab the application is mostly used through. A folder is chosen, the stream is started, and the plot follows the newest file in it - which is how the setup is aligned, since a change to the optics shows up on the plot within a file or two.
- class daplis_rtp.gui.tabs.online_plot.LiveTimestamps(parent=None)[source]
Bases:
PlotTabPhoton rate per pixel, for a single LinoSPAD2 board.
- canvas_class
alias of
SensorCanvas
- hint_text = 'Photon rate per pixel, from the newest file in the folder. Start the stream to follow it as files arrive; 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 the recorded warm-pixel mask, or lift it again.
The file is looked up from the daughterboard and motherboard chosen above; a combination that has no mask recorded says so and clears the tick rather than leaving it set over nothing.
- report_occupancy(occupancy, fw_ver, pix_add_fix)[source]
Hand one refresh’s slot occupancy to the status box.
The pixels of interest come either from the box’s own field or from the mask and the x-limits; they are pixel numbers as plotted, so they are mapped to TDCs with the same
pix_add_fixthe rates were built with.
- session_scope = 'online_plot'