hyperspyui.modelwrapper module

Created on Tue Nov 04 16:25:54 2014

@author: Vidar Tonaas Fauske

class hyperspyui.modelwrapper.ModelWrapper(model, signal_wrapper, name)

Bases: Actionable

_args_for_record(args, kwargs)
add_component(component)
added

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

component_added(component)
component_removed(component)
fit(*args, **kwargs)
fit_component(component)
multifit(*args, **kwargs)
plot()
record_code(code)
remove_component(component)
removed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

set_lowloss(signal=None)
set_signal_range(*args, **kwargs)
smartfit(*args, **kwargs)
toggle_fine_structure()
update_components()

Updates internal compoenent list to match model’s list (called e.g. after console execute and in constructor)

update_plot()
hyperspyui.modelwrapper.tr(text)