eda_plugin.analysers.image.PycroImageAnalyser

class eda_plugin.analysers.image.PycroImageAnalyser(*args: Any, **kwargs: Any)

Bases: ImageAnalyser

__init__(event_bus)

Get settings from settings.json, set up the threadpool and connect signals.

Methods

__init__(event_bus)

Get settings from settings.json, set up the threadpool and connect signals.

connect_incoming_events(event_bus)

Do not connect the MDA and acquisition events, we need the info from magellan

connect_worker_signals(worker)

Connect worker signals in extra method, so that this can be overwritten independently.

gather_images(py_image)

Gather the amount of images needed.

new_magellan_settings(new_settings)

new_mda_settings(new_settings)

start_analysis

connect_incoming_events(event_bus: EventBus) None

Do not connect the MDA and acquisition events, we need the info from magellan

connect_worker_signals(worker: qtpy.QtCore.QRunnable)

Connect worker signals in extra method, so that this can be overwritten independently.

gather_images(py_image: pymm_eventserver.data_structures.PyImage) bool

Gather the amount of images needed. Channels can be swapped by subclasses. So don’t rely on them coming in in the correct order.

new_decision_parameter

alias of float

start_analysis(evt: pymm_eventserver.data_structures.PyImage)

Image arrived, see if all images were gathered and if so, start analysis.