autodeer.gui

Submodules

Package Contents

Classes

autoDEERUI

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.

class autodeer.gui.autoDEERUI[source]

Bases: autodeer.gui.tools.QMainWindow

q_DEER
longDEER
threadpool
current_results
current_data
pulses
spectromterInterface = 'None'
waitCondition = 'None'
queue
current_folder = 'None'
config = 'None'
connected = 'False'
DL_params
worker = 'None'
starttime
Bruker = 'False'
userinput
LO = '0'
gyro = '0.002803632236095'
cores = '1'
Min_tp = '12'
deer_settings
priorties
correction_factor = '1'
set_spectrometer_connected_light(state)[source]
load_folder(*args, folder_path=None)[source]
load_epr_file(store_location)[source]
load_spectrometer_config(filename=None)[source]
select_resonator()[source]
change_LO()[source]
connect_spectrometer()[source]
raise_warning(message)[source]
save_data(dataset, experiment)[source]
fsweep_toolbar()[source]
respro_toolbar()[source]
relax_toolbar()[source]
update_fieldsweep(dataset=None)[source]
create_fieldsweep_figure()[source]
refresh_fieldsweep_after_fit(fitresult)[source]
update_respro(dataset=None)[source]
create_respro_figure()[source]
refresh_respro(*args)[source]
optimise_pulses_button()[source]
optimise_pulses(pulses=None)[source]
update_optimise_pulses_figure()[source]
update_relax(dataset=None)[source]
create_relax_figure()[source]
refresh_relax_figure()[source]
refresh_relax(fitresult)[source]
initialise_deer_settings()[source]
update_deer_settings()[source]
update_relax2D(dataset=None)[source]
update_T2(dataset=None)[source]
check_T2(fitresult)[source]
check_CP(fitresult)[source]
refresh_T2(fitresult)[source]
advanced_mode_inputs()[source]
update_quickdeer(dataset=None)[source]
update_longdeer(dataset=None)[source]
update_reptime(dataset=None)[source]
timeout()[source]

Creates a pop up box as the experiment has timed out

clear_all()[source]
RunAutoDEER(advanced=False)[source]
RunFullyAutoDEER()[source]
RunAdvancedAutoDEER()[source]
create_report()[source]
autodeer.gui.create_save_name(SampleName, experiment, timestamp=True, ProjectName=None, Comment=None)[source]
Parameters:
  • SampleName (str)

  • experiment (str)

autodeer.gui.getCIstring(Uncert, precision=2)[source]
autodeer.gui.load_epr_file(Object, store_location)[source]
autodeer.gui.get_sequence_rows(Sequence, names)[source]
Parameters:

names (list)

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

Initialise the runner function with passed args, kwargs.