threads

Module Contents

Classes

ProcessThread

Worker thread

WorkerFitLifetimes

A QRunnable class to create a worker thread for fitting lifetimes.

WorkerGrouping

WorkerResolveLevels

A QRunnable class to create a worker thread for resolving levels.

WorkerBinAll

A QRunnable class to create a worker thread for binning all the data.

Attributes

logger

threads.logger[source]
class threads.ProcessThread(num_processes: int = None, tasks: processes.ProcessTask | List[processes.ProcessTask] = None, signals: signals.ProcessThreadSignals = None, worker_signals: signals.WorkerSignals = None, task_buffer_size: int = None, status_message: str = None, temp_dir: tempfile.TemporaryDirectory = None)[source]

Bases: PyQt5.QtCore.QRunnable

Worker thread

property status_message[source]
add_tasks(tasks: processes.ProcessTask | List[processes.ProcessTask])[source]
add_tasks_from_methods(objects: object | List[object], method_name: str, args=None)[source]
run(num_processes: int = None)[source]

Your code goes in this function

check_fbk_queue()[source]
class threads.WorkerFitLifetimes(fit_lifetimes_func, data, currentparticle, fitparam, mode: str, resolve_selected=None)[source]

Bases: PyQt5.QtCore.QRunnable

A QRunnable class to create a worker thread for fitting lifetimes.

run() None[source]

The code that will be run when the thread is started.

class threads.WorkerGrouping(data: smsh5.H5dataset, grouping_func, mode: str, currentparticle: smsh5.Particle = None, group_selected=None)[source]

Bases: PyQt5.QtCore.QRunnable

run() None[source]

The code that will be run when the thread is started.

class threads.WorkerResolveLevels(resolve_levels_func, conf: int | float, data: smsh5.H5dataset, currentparticle: smsh5.Particle, mode: str, resolve_selected=None, end_time_s=None)[source]

Bases: PyQt5.QtCore.QRunnable

A QRunnable class to create a worker thread for resolving levels.

run() None[source]

The code that will be run when the thread is started.

class threads.WorkerBinAll(dataset, binall_func, bin_size)[source]

Bases: PyQt5.QtCore.QRunnable

A QRunnable class to create a worker thread for binning all the data.

run() None[source]

The code that will be run when the thread is started.