hyperspyui.widgets.elementpicker module

Created on Fri Nov 21 22:22:33 2014

@author: Vidar Tonaas Fauske

class hyperspyui.widgets.elementpicker.ElementPickerWidget(main_window, parent)

Bases: FigureWidget

Tool window for picking elements of an interactive periodic table. Takes a signal in the constructor, and a parent control.

_get_element_subshells(element, include_pre_edges=False)
_on_figure_change(figure)

Called when a connected update triggers. If the window is valid, it sets up the traitsui dialog capture, and calls cb_make_dialog. If the window is invalid, it clears the widget.

_on_toggle_markers(value)

Toggles peak markers on the plot, i.e. adds/removes markers for all elements added on signal.

_set_elements(elements)

Sets the table elements to passed parameter. Does not modify elements in signal! That is handled by the _toggle_element* functions

_toggle_element(element)

Makes sure the element is toggled correctly for both EDS and EELS. Dependent on hyperspy implementation, as there are currently no remove_element functions.

_toggle_element_eds(element)
_toggle_element_eels(element)
_toggle_subshell(subshell, checked)
create_controls()

Create UI controls.

element_context(widget, point)
element_toggled

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

isEDS()
isEELS()
make_map()

Make integrated intensity maps for the defines elements. Currently only implemented for EDS signals.

property markers
set_element(element, value)

Sets the state of element in table and adds/removes in signal if necessary

set_enabled(value)
set_signal(signal)
hyperspyui.widgets.elementpicker.tr(text)