lyse.utils.worker

Lyse worker common utilities

Module Attributes

spinning_top

Variable to tell lyse API if running from within lyse GUI

path

Path to hdf5 being analysed.

Plot

A fake Plot object to subclass if we are not running in the GUI

plots

An empty dictionary of plots (overwritten by the analysis worker if running within lyse)

delay_event

A threading.Event to signal a delay

Functions

delay_results_return()

figure_to_clipboard([figure])

Copy a matplotlib figure to the clipboard as a png.

get_plot_class(identifier)

register_plot_class(identifier, cls)