devctrl.utility#

Various utility modules: file io, logging, settings and more.

Functions

decrease_value

From a list of values, get the current value, decrease the value to the next possible value and set it using the getter.

increase_value

From a list of values, get the current value, increase the value to the next possible value and set it using the getter.

config_file

ConfigFile: dictionary linked to yaml file (DEPRECATED)

decorators

email

event

file_io

log

messaging

Show exceptions, warnings or messages to the user.

monitor

sample

Interface to a sample database.

settings

Utility for handling measurement settings in a class-based approach.

settings_db

Database-like structure for storing SettingsClass instances.

svg_recolor

Change colors in svg files.

threading

Thread with exception support and a fake thread for debugging.

time

translation

Generate QT translation files for dataclass members.

visa

warnings

Show an exception as warning.