nomad_camels_toolbox.utils package

Submodules

nomad_camels_toolbox.utils.exception_hook module

class nomad_camels_toolbox.utils.exception_hook.ErrorMessage(exc_info, parent=None)

Bases: QMessageBox

A popUp-box describing an Error.

Parameters:
  • msg (str) – the error message

  • info_text (str) – A longer text, explaining the error (usually traceback)

  • parent (QWidget) – The parent widget of this Messagebox

show_more_info()
staticMetaObject = PySide6.QtCore.QMetaObject("ErrorMessage" inherits "QMessageBox": )
nomad_camels_toolbox.utils.exception_hook.exception_hook(*exc_info)

Used to overwrite sys.excepthook, so that an exception does not terminate the program, but simply shows a Message with the exception. If the Exception is a KeyboardInterrupt, it does nothing, so that the interrupt may actually stop the program execution.

Parameters:

*exc_info (tuple(class, Exception, traceback)) – The information for the exception.

nomad_camels_toolbox.utils.fit_variable_renaming module

Provides a function to rename typical names for fit-variables to valid python-names

nomad_camels_toolbox.utils.fit_variable_renaming.replace_name(var_name)

Replaces mathematical symbols with text so that the variable name becomes a valid name.

Parameters:

var_name (str) – The variable that should be renamed.

Module contents