exopy.measurement.workspace.measurement_tracking module

Thread-loke object keeping track of the last edited measurement.

class exopy.measurement.workspace.measurement_tracking.MeasurementTracker[source]

Bases: atom.atom.Atom

Object responsible for tracking the currently edited measurement.

The tracking relies on the last focus that got focus.

start(measurement)[source]

Start the working thread.

stop()[source]

Stop the working thread.

enqueue(widget)[source]

Enqueue a newly selected widget.

run()[source]

Method called by the working thread.

get_selected_measurement()[source]

Get the currently selected measurement.

The measurement is returned only when thread in done processing the enqueued widgets.

set_selected_measurement(measurement)[source]

Set the currently selected measurement.

This is used when the selected measurement does not result from focusing.