exopy.measurement.processor module

Object reponsible for a measurement execution.

Please note that the ‘real’ work of performing the tasks is handled by the engine. This object handles all the other aspects (running of the hooks, handling of the monitors, …)

exopy.measurement.processor.plugin()[source]

Delayed import to avoid circular references.

exopy.measurement.processor.schedule_and_block(func, args=(), kwargs={}, priority=100)[source]

Schedule a function call on the main thread and wait for it to complete.

class exopy.measurement.processor.MeasurementProcessor[source]

Bases: atom.atom.Atom

Object reponsible for a measurement execution.

active

Boolean indicating whether or not the processor is working.

plugin

Reference to the measurement plugin.

running_measurement

Currently run measurement or last measurement run.

engine

Instance of the currently used engine.

continuous_processing

Boolean indicating whether or not process all enqueued measurements.

monitors_window

Monitors window

start_measurement(measurement)[source]

Start a new measurement.

pause_measurement()[source]

Pause the currently active measurement.

resume_measurement()[source]

Resume the currently paused measurement.

stop_measurement(no_post_exec=False, force=False)[source]

Stop the currently active measurement.

stop_processing(no_post_exec=False, force=False)[source]

Stop processing the enqueued measurements.

exopy.measurement.processor.errors_to_msg(errors)[source]

Convert a dictionary of errors in a well formatted message.