autodeer.gui.tools
¶
Module Contents¶
Classes¶
Defines the signals available from a running worker thread. |
|
Worker thread |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Raises an error box if the SNR of the signal is less than 1. |
- autodeer.gui.tools.create_save_name(SampleName, experiment, timestamp=True, ProjectName=None, Comment=None)[source]¶
- Parameters:
SampleName (str)
experiment (str)
- autodeer.gui.tools.test_SNR(Application, data)[source]¶
Raises an error box if the SNR of the signal is less than 1.
- Parameters:
- data_type_
_description_
- class autodeer.gui.tools.WorkerSignals[source]¶
Bases:
PyQt6.QtCore.QObject
Defines the signals available from a running worker thread.
Supported signals are:
- finished
No data
- error
tuple (exctype, value, traceback.format_exc() )
- result
object data returned from processing, anything
- progress
int indicating % progress
- class autodeer.gui.tools.Worker(fn, *args, **kwargs)[source]¶
Bases:
PyQt6.QtCore.QRunnable
Worker thread
Inherits from QRunnable to handler worker thread setup, signals and wrap-up.
- Parameters:
callback (function) – The function callback to run on this worker thread. Supplied args and kwargs will be passed through to the runner.
args – Arguments to pass to the callback function
kwargs – Keywords to pass to the callback function