daplis_rtp.gui.tabs.mzi module

MZI: the photon rate in two pixels, against time.

The two arms of a Mach-Zehnder interferometer land on two pixels, and what is being watched is how their counts move against each other as the interferometer drifts or is driven. One point is added per data file, so the trace grows at whatever rate the acquisition writes.

class daplis_rtp.gui.tabs.mzi.MZI(parent=None)[source]

Bases: PlotTab

Two pixels’ photon rate against elapsed time.

bind_session()[source]

Register the controls this tab should remember.

build()[source]

Fill the shell. Every tab writes this and nothing else.

canvas_class

alias of MziCanvas

hint_text = 'Photon rate in two pixels against time — one point per data file. Start the stream and the trace grows as files arrive.'
on_stream_start()[source]

Hook: what this tab arms when a run starts.

on_waiting_for_data()[source]

Hook: say, quietly, that the folder is still empty.

plotted_data()[source]

The numbers behind the plot, for File -> Export.

Returns None when there is nothing to export, or a dict:

stem

A suggested file name, without an extension.

columns

Ordered {heading: 1-D array}; every column the same length.

notes

Lines 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 redraw. Written by every tab.

resetPlot()[source]
session_scope = 'mzi'
watched_paths()[source]

The folders a running stream should watch. Tabs override.