All public packages, functions and classes are available in this module.
When starting HyperSpy using the
hyperspy script (e.g. by executing
hyperspy in a console, using the context menu entries or using the links in
Start Menu, the
api package is imported in the user
hs, i.e. by executing the following:
>>> import hyperspy.api as hs
(Note that code snippets are indicated by three greater-than signs)
We recommend to import the HyperSpy API as above also when doing it manually.
The docstring examples assume that hyperspy has been imported as hs,
Create a model for curve fitting.
Return the configuration directory path.
Load data into BaseSignal instances from supported files.
Preferences class instance to configure the default value of different parameters. It has a CLI and a GUI that can be started by execting its gui method i.e. preferences.gui().
Stack several signals.
Define operations that are automatically recomputed on event changes.
Convenience function to set HyperSpy’s the log level.
api package contains the following submodules/packages:
Signal classes which are the core of HyperSpy. Use this modules to create Signal instances manually from numpy arrays. Note that to load data from supported file formats is more convenient to use the load function.
componentsmodule with components that can be used to create a model for curve fitting.
Functions for energy dispersive X-rays data analysis.
Useful functions for materials properties and elements database that includes physical properties and X-rays and EELS energies.
Plotting functions that operate on multiple signals.
Region of interests (ROIs) that operate on BaseSignal instances and include widgets for interactive operation.
SAMFire utilities (strategies, Pool, fit convergence tests)
For more details see their doctrings.