autodeer.gui.tools

Module Contents

Classes

WorkerSignals

Defines the signals available from a running worker thread.

Worker

Worker thread

Functions

create_save_name(SampleName, experiment[, timestamp, ...])

getCIstring(Uncert[, precision])

load_epr_file(Object, store_location)

get_sequence_rows(Sequence, names)

fill_table(table, headers, rows[, rowcount])

read_table(table)

list_str_to_type(list[, type])

str_to_list_type(string[, type])

pyqt_table_from_dict(table, dict)

param_in_us(param)

param_in_MHz(param)

test_SNR(Application, data)

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.getCIstring(Uncert, precision=2)[source]
autodeer.gui.tools.load_epr_file(Object, store_location)[source]
autodeer.gui.tools.get_sequence_rows(Sequence, names)[source]
Parameters:

names (list)

autodeer.gui.tools.fill_table(table, headers, rows, rowcount=None)[source]
autodeer.gui.tools.read_table(table)[source]
autodeer.gui.tools.list_str_to_type(list, type=int)[source]
autodeer.gui.tools.str_to_list_type(string, type=int)[source]
autodeer.gui.tools.pyqt_table_from_dict(table, dict)[source]
autodeer.gui.tools.param_in_us(param)[source]
autodeer.gui.tools.param_in_MHz(param)[source]
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

finished[source]
error[source]
result[source]
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

fn[source]
args[source]
kwargs[source]
signals[source]
run()[source]

Initialise the runner function with passed args, kwargs.