empyer.io module¶
-
empyer.io.
load
(filenames=None, signal_type=None, stack=False, stack_axis=None, new_axis_name='stack_element', lazy=False, **kwds)¶ Extends the hyperspy loading functionality with additional ability to load empyer signals.
Parameters: - filenames (list) – The list of file paths or single file to be loaded
- signal_type (str) – The type of signal to be loaded. Can be read from file or given
- stack (bool) – Stack creates a new axis and loads a list of files into one signal
- stack_axis
- new_axis_name (str) – The name of the new axis created with stack
- lazy (bool) – Load the signal into memory or load chunks. May effect performance, but useful for large datasets.
Returns: A signal of type signal_type
Return type: signal
-
empyer.io.
to_correlation_signal
(signal=None)¶ Hyperspy signal to correlation_signal
Parameters: signal (Signal2D) Returns: ds – A signal of type signal_type Return type: em_signal
-
empyer.io.
to_diffraction_signal
(signal=None)¶ Hyperspy signal to diffraction_signal
Parameters: signal (Signal2D) Returns: ds – A signal of type signal_type Return type: em_signal
-
empyer.io.
to_em_signal
(signal=None)¶ Hyperspy signal to em_signal
Parameters: signal (Signal2D) Returns: ds – A signal of type signal_type Return type: em_signal
-
empyer.io.
to_polar_signal
(signal=None)¶ Hyperspy signal to polar_signal
Parameters: signal (Signal2D) Returns: ds – A signal of type signal_type Return type: em_signal
-
empyer.io.
to_power_signal
(signal=None)¶ Hyperspy signal to power_signal
Parameters: signal (Signal2D) Returns: ds – A signal of type signal_type Return type: em_signal