daplis_rtp.gui.tabs package
The five tabs, in the order the window shows them.
- class daplis_rtp.gui.tabs.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'
- class daplis_rtp.gui.tabs.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'
- class daplis_rtp.gui.tabs.MZI(parent=None)[source]
Bases:
PlotTabTwo pixels’ photon rate against elapsed time.
- hint_text = 'Photon rate in two pixels against time — one point per data file. Start the stream and the trace grows as files arrive.'
- 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.
- session_scope = 'mzi'
- class daplis_rtp.gui.tabs.SinglePixelHistogram(parent=None)[source]
Bases:
PlotTabHistogram of one pixel’s timestamps within the acquisition cycle.
- canvas_class
alias of
HistogramCanvas
- hint_text = "Arrival times of one pixel's photons within the acquisition cycle. A healthy pixel gives a flat top."
- on_session_restored()[source]
Re-read the cycle length out of its restored field.
Silently, unlike ‘cycle_length_change’: this runs while the tab is still being built, and a warning box here would come up before the window it belongs to.
- 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.
- refresh()[source]
Read the newest file and rebuild the histogram.
There is no stream on this tab: a histogram is something to look at, not something to watch move. The button reads the newest file every time it is pressed, so a run in progress is followed by pressing it again.
- session_scope = 'single_pixel_histogram'
- class daplis_rtp.gui.tabs.Synchronization(parent=None)[source]
Bases:
TabShellTab for controlling two-board synchronized acquisition over TCP.
- BOARD_INFO = {0: ('Board 0 (dev 0 / #33)', 5555), 1: ('Board 1 (dev 1 / #21)', 5556)}
- HINT = "Both LinoSPAD_synchro.exe instances must be running and 'Listening' first. Use 25 MHz on the external clock. Each board saves to its own GUI's AutoSave path."
Submodules
- daplis_rtp.gui.tabs.base module
PlotTabPlotTab.__init__()PlotTab.bind_session()PlotTab.build()PlotTab.canvas_classPlotTab.hint_textPlotTab.last_data_file()PlotTab.no_data()PlotTab.on_refresh_requested()PlotTab.on_session_restored()PlotTab.on_stream_start()PlotTab.on_stream_stop()PlotTab.on_waiting_for_data()PlotTab.plotted_data()PlotTab.refresh()PlotTab.report_error()PlotTab.session_scopePlotTab.slot_refresh()PlotTab.start_stream()PlotTab.stop_stream()PlotTab.toggle_stream()PlotTab.update_time_stamp()PlotTab.watched_paths()
- daplis_rtp.gui.tabs.full_sensor module
LinoSPAD2DualLinoSPAD2Dual.bind_session()LinoSPAD2Dual.build()LinoSPAD2Dual.canvas_classLinoSPAD2Dual.combined_mask()LinoSPAD2Dual.hint_textLinoSPAD2Dual.mask_pixels()LinoSPAD2Dual.on_refresh_requested()LinoSPAD2Dual.on_stream_start()LinoSPAD2Dual.on_stream_stop()LinoSPAD2Dual.plotted_data()LinoSPAD2Dual.presetmask_pixels()LinoSPAD2Dual.refresh()LinoSPAD2Dual.report_occupancy()LinoSPAD2Dual.reset_pix_mask()LinoSPAD2Dual.session_scopeLinoSPAD2Dual.slot_mask_changed()LinoSPAD2Dual.toggle_pixel_mask()LinoSPAD2Dual.watched_paths()
- daplis_rtp.gui.tabs.mzi module
- daplis_rtp.gui.tabs.online_plot module
LiveTimestampsLiveTimestamps.bind_session()LiveTimestamps.build()LiveTimestamps.canvas_classLiveTimestamps.hint_textLiveTimestamps.mask_pixels()LiveTimestamps.on_refresh_requested()LiveTimestamps.on_stream_start()LiveTimestamps.on_waiting_for_data()LiveTimestamps.plotted_data()LiveTimestamps.presetmask_pixels()LiveTimestamps.refresh()LiveTimestamps.report_occupancy()LiveTimestamps.reset_pix_mask()LiveTimestamps.session_scopeLiveTimestamps.slot_mask_changed()LiveTimestamps.toggle_pixel_mask()LiveTimestamps.watched_paths()
- daplis_rtp.gui.tabs.single_pixel_histogram module
SinglePixelHistogramSinglePixelHistogram.bind_session()SinglePixelHistogram.build()SinglePixelHistogram.canvas_classSinglePixelHistogram.cycle_length_change()SinglePixelHistogram.hint_textSinglePixelHistogram.on_session_restored()SinglePixelHistogram.plotted_data()SinglePixelHistogram.refresh()SinglePixelHistogram.session_scope
- daplis_rtp.gui.tabs.synchronization module