hyperspy package
Subpackages
- hyperspy._components package
- Submodules
- hyperspy._components.arctan module
- hyperspy._components.bleasdale module
- hyperspy._components.doniach module
- hyperspy._components.eels_arctan module
- hyperspy._components.eels_cl_edge module
- hyperspy._components.eels_double_power_law module
- hyperspy._components.eels_vignetting module
- hyperspy._components.error_function module
- hyperspy._components.exponential module
- hyperspy._components.expression module
- hyperspy._components.gaussian module
- hyperspy._components.gaussian2d module
- hyperspy._components.gaussianhf module
- hyperspy._components.heaviside module
- hyperspy._components.logistic module
- hyperspy._components.lorentzian module
- hyperspy._components.offset module
- hyperspy._components.pes_core_line_shape module
- hyperspy._components.pes_see module
- hyperspy._components.pes_voigt module
- hyperspy._components.polynomial module
- hyperspy._components.polynomial_deprecated module
- hyperspy._components.power_law module
- hyperspy._components.rc module
- hyperspy._components.scalable_fixed_pattern module
- hyperspy._components.skew_normal module
- hyperspy._components.split_voigt module
- hyperspy._components.voigt module
- hyperspy._components.volume_plasmon_drude module
- Module contents
- Submodules
- hyperspy._signals package
- Submodules
- hyperspy._signals.common_signal1d module
- hyperspy._signals.common_signal2d module
- hyperspy._signals.complex_signal module
- hyperspy._signals.complex_signal1d module
- hyperspy._signals.complex_signal2d module
- hyperspy._signals.dielectric_function module
- hyperspy._signals.eds module
- hyperspy._signals.eds_sem module
- hyperspy._signals.eds_tem module
- hyperspy._signals.eels module
- hyperspy._signals.hologram_image module
- hyperspy._signals.lazy module
- hyperspy._signals.signal1d module
- hyperspy._signals.signal2d module
- Module contents
- Submodules
- hyperspy.datasets package
- hyperspy.docstrings package
- hyperspy.drawing package
- Subpackages
- Submodules
- hyperspy.drawing.figure module
- hyperspy.drawing.image module
- hyperspy.drawing.marker module
- hyperspy.drawing.mpl_he module
- hyperspy.drawing.mpl_hie module
- hyperspy.drawing.mpl_hse module
- hyperspy.drawing.signal module
- hyperspy.drawing.signal1d module
- hyperspy.drawing.tiles module
- hyperspy.drawing.utils module
- hyperspy.drawing.widget module
- hyperspy.drawing.widgets module
- Module contents
- hyperspy.io_plugins package
- Submodules
- hyperspy.io_plugins._hierarchical module
- hyperspy.io_plugins.blockfile module
- hyperspy.io_plugins.bruker module
- hyperspy.io_plugins.dens module
- hyperspy.io_plugins.digital_micrograph module
- hyperspy.io_plugins.edax module
- hyperspy.io_plugins.emd module
- hyperspy.io_plugins.empad module
- hyperspy.io_plugins.fei module
- hyperspy.io_plugins.hspy module
- hyperspy.io_plugins.image module
- hyperspy.io_plugins.impulse module
- hyperspy.io_plugins.jeol module
- hyperspy.io_plugins.mrc module
- hyperspy.io_plugins.mrcz module
- hyperspy.io_plugins.msa module
- hyperspy.io_plugins.netcdf module
- hyperspy.io_plugins.nexus module
_byte_to_string()
_extract_hdf_dataset()
_find_data()
_find_search_keys_in_dict()
_fix_exclusion_keys()
_get_nav_list()
_getlink()
_is_int()
_is_linear_axis()
_is_numeric_data()
_load_metadata()
_nexus_dataset_to_signal()
_parse_from_file()
_parse_to_file()
_text_split()
_write_nexus_attr()
_write_nexus_groups()
_write_signal()
file_reader()
file_writer()
list_datasets_in_file()
read_metadata_from_file()
- hyperspy.io_plugins.phenom module
- hyperspy.io_plugins.protochips module
- hyperspy.io_plugins.ripple module
- hyperspy.io_plugins.semper_unf module
- hyperspy.io_plugins.sur module
- hyperspy.io_plugins.tiff module
- hyperspy.io_plugins.tvips module
- hyperspy.io_plugins.usid_hdf5 module
- hyperspy.io_plugins.zspy module
- Module contents
- Submodules
- hyperspy.learn package
- hyperspy.misc package
- Subpackages
- Submodules
- hyperspy.misc.array_tools module
_linear_bin()
_numba_histogram()
_requires_linear_rebin()
are_aligned()
dict2sarray()
get_array_memory_size_in_GiB()
get_signal_chunk_slice()
homogenize_ndim()
numba_closest_index_ceil()
numba_closest_index_floor()
numba_closest_index_round()
numba_histogram()
rebin()
round_half_away_from_zero()
round_half_towards_zero()
sarray2dict()
- hyperspy.misc.axis_tools module
- hyperspy.misc.config_dir module
- hyperspy.misc.date_time_tools module
- hyperspy.misc.elements module
- hyperspy.misc.example_signals_loading module
- hyperspy.misc.export_dictionary module
- hyperspy.misc.hist_tools module
- hyperspy.misc.ipython_tools module
- hyperspy.misc.label_position module
- hyperspy.misc.lowess_smooth module
- hyperspy.misc.material module
- hyperspy.misc.math_tools module
- hyperspy.misc.model_tools module
- hyperspy.misc.physics_tools module
- hyperspy.misc.rgb_tools module
- hyperspy.misc.signal_tools module
- hyperspy.misc.slicing module
- hyperspy.misc.test_utils module
- hyperspy.misc.tv_denoise module
- hyperspy.misc.utils module
DictionaryTreeBrowser
_get_block_pattern()
add_key_value()
attrsetter()
check_long_string()
closest_power_of_two()
find_subclasses()
fsdict()
get_array_module()
get_numpy_kwargs()
get_object_package_info()
guess_output_signal_size()
is_binned()
is_cupy_array()
is_hyperspy_signal()
multiply()
nested_dictionary_merge()
ordinal()
parse_quantity()
print_html()
process_function_blockwise()
replace_html_symbols()
rollelem()
slugify()
stack()
str2num()
swapelem()
to_numpy()
transpose()
underline()
- hyperspy.misc.array_tools module
- Module contents
- hyperspy.models package
- hyperspy.samfire_utils package
- Subpackages
- Submodules
- hyperspy.samfire_utils.fit_tests module
- hyperspy.samfire_utils.global_strategies module
- hyperspy.samfire_utils.local_strategies module
- hyperspy.samfire_utils.samfire_kernel module
- hyperspy.samfire_utils.samfire_pool module
- hyperspy.samfire_utils.samfire_worker module
- hyperspy.samfire_utils.strategy module
- Module contents
- hyperspy.utils package
- Submodules
- hyperspy.utils.eds module
- hyperspy.utils.markers module
- hyperspy.utils.material module
- hyperspy.utils.model module
- hyperspy.utils.model_selection module
- hyperspy.utils.parallel_pool module
- hyperspy.utils.peakfinders2D module
- hyperspy.utils.plot module
- hyperspy.utils.roi module
- hyperspy.utils.samfire module
- Module contents
- Submodules
Submodules
- hyperspy.Release module
- hyperspy._lazy_signals module
- hyperspy.api module
- hyperspy.api_nogui module
- hyperspy.axes module
AxesManager
AxesManager._get_data_slice()
AxesManager._get_iterpath_size()
AxesManager._remove_one_axis()
AxesManager._set_axis_attribute_values()
AxesManager._sort_axes()
AxesManager.axes_are_aligned_with_data
AxesManager.convert_units()
AxesManager.coordinates
AxesManager.create_axes()
AxesManager.gui()
AxesManager.gui_navigation_sliders()
AxesManager.indices
AxesManager.iterpath
AxesManager.key_navigator()
AxesManager.navigation_axes
AxesManager.navigation_dimension
AxesManager.navigation_shape
AxesManager.navigation_size
AxesManager.remove()
AxesManager.set_axis()
AxesManager.set_signal_dimension()
AxesManager.value
AxesManager.signal_axes
AxesManager.signal_dimension
AxesManager.signal_shape
AxesManager.signal_size
AxesManager.switch_iterpath()
AxesManager.update_axes_attributes_from()
BaseDataAxis
DataAxis
FunctionalDataAxis
GeneratorLen
UniformDataAxis
_flyback_iter()
_serpentine_iter()
create_axis()
generate_uniform_axis()
ndindex_nat
- hyperspy.component module
Component
Component._compute_constant_term()
Component._constant_term
Component._load_dictionary()
Component.active_is_multidimensional
Component.as_dictionary()
Component.export()
Component.fetch_values_from_array()
Component.gui()
Component.init_parameters()
Component.plot()
Component.print_current_values()
Component.set_parameters_free()
Component.set_parameters_not_free()
NoneFloat
Parameter
Parameter.value
Parameter.twin
Parameter.twin_function_expr
Parameter.twin_inverse_function_expr
Parameter.twin_function
Parameter.twin_inverse_function
Parameter.ext_force_positive
Parameter.ext_bounded
Parameter._create_array()
Parameter._load_dictionary()
Parameter.as_dictionary()
Parameter.as_signal()
Parameter.assign_current_value_to_all()
Parameter.default_traits_view()
Parameter.export()
Parameter.fetch()
Parameter.gui()
Parameter.plot()
Parameter.store_current_value_in_array()
_get_scaling_factor()
convolve_component_values()
- hyperspy.components1d module
- hyperspy.components2d module
- hyperspy.conftest module
- hyperspy.decorators module
- hyperspy.defaults_parser module
- hyperspy.events module
- hyperspy.exceptions module
ByteOrderError
DM3DataTypeError
DM3FileVersionError
DM3TagError
DM3TagIDError
DM3TagTypeError
DataDimensionError
ImageIDError
ImageModeError
LazyCupyConversion
MissingParametersError
MountainsMapFileError
NavigationDimensionError
NavigationSizeError
NoInteractiveError
ShapeError
SignalDimensionError
SignalSizeError
VisibleDeprecationWarning
WrongObjectError
- hyperspy.extensions module
- hyperspy.interactive module
- hyperspy.io module
- hyperspy.logger module
- hyperspy.model module
BaseModel
BaseModel.signal
BaseModel.chisq
BaseModel.dof
BaseModel.components
BaseModel.plot()
BaseModel.set_current_values_to()
BaseModel.fit_component()
BaseModel._bounds_as_tuple()
BaseModel._disable_ext_bounding()
BaseModel._enable_ext_bounding()
BaseModel._fetch_values_from_p0()
BaseModel._free_parameters
BaseModel._get_variance()
BaseModel._linear_fit()
BaseModel._load_dictionary()
BaseModel._on_navigating()
BaseModel._set_boundaries()
BaseModel._set_mpfit_parameters_info()
BaseModel._set_p0()
BaseModel.active_components
BaseModel.append()
BaseModel.as_dictionary()
BaseModel.as_signal()
BaseModel.assign_current_values_to_all()
BaseModel.create_samfire()
BaseModel.ensure_parameters_in_bounds()
BaseModel.export_results()
BaseModel.extend()
BaseModel.fetch_stored_values()
BaseModel.fetch_values_from_array()
BaseModel.fit()
BaseModel.gui()
BaseModel.insert()
BaseModel.load_parameters_from_file()
BaseModel.multifit()
BaseModel.plot_results()
BaseModel.print_current_values()
BaseModel.red_chisq
BaseModel.remove()
BaseModel.save()
BaseModel.save_parameters2file()
BaseModel.set_component_active_value()
BaseModel.set_parameters_free()
BaseModel.set_parameters_not_free()
BaseModel.set_parameters_value()
BaseModel.store()
BaseModel.store_current_values()
BaseModel.suspend_update()
BaseModel.update_plot()
ModelComponents
_check_deprecated_optimizer()
_twinned_parameter()
- hyperspy.roi module
BaseInteractiveROI
BaseInteractiveROI._apply_roi2widget()
BaseInteractiveROI._get_widget_type()
BaseInteractiveROI._on_widget_change()
BaseInteractiveROI._set_default_values()
BaseInteractiveROI._set_from_widget()
BaseInteractiveROI._update_widgets()
BaseInteractiveROI.add_widget()
BaseInteractiveROI.interactive()
BaseInteractiveROI.remove_widget()
BaseInteractiveROI.update()
BasePointROI
BaseROI
CircleROI
Line2DROI
Point1DROI
Point2DROI
RectangularROI
SpanROI
_get_central_half_limits_of_axis()
_get_mpl_ax()
- hyperspy.samfire module
Samfire
Samfire.model
Samfire.optional_components
Samfire.workers
Samfire.pool
Samfire.strategies
Samfire.metadata
Samfire.active_strategy
Samfire.update_every
Samfire.plot_every
Samfire.save_every
Samfire.random_state
Samfire._setup()
Samfire.append()
Samfire.backup()
Samfire.change_strategy()
Samfire.extend()
Samfire.generate_values()
Samfire.log()
Samfire.pixels_done
Samfire.pixels_left
Samfire.plot()
Samfire.refresh_database()
Samfire.remove()
Samfire.start()
Samfire.stop()
Samfire.update()
StrategyList
- hyperspy.signal module
BaseSetMetadataItems
BaseSignal
BaseSignal.T
BaseSignal._check_navigation_mask()
BaseSignal._check_signal_mask()
BaseSignal._cycle_signal()
BaseSignal._data_aligned_with_axes
BaseSignal._deepcopy_with_new_data()
BaseSignal._get_navigation_signal()
BaseSignal._get_signal_signal()
BaseSignal._get_undefined_axes_list()
BaseSignal._iterate_signal()
BaseSignal._load_dictionary()
BaseSignal._map_all()
BaseSignal._to_dictionary()
BaseSignal._unfold()
BaseSignal.add_gaussian_noise()
BaseSignal.add_marker()
BaseSignal.add_poissonian_noise()
BaseSignal.apply_apodization()
BaseSignal.as_lazy()
BaseSignal.as_signal1D()
BaseSignal.as_signal2D()
BaseSignal.change_dtype()
BaseSignal.copy()
BaseSignal.crop()
BaseSignal.data
BaseSignal.deepcopy()
BaseSignal.derivative()
BaseSignal.diff()
BaseSignal.estimate_poissonian_noise_variance()
BaseSignal.fft()
BaseSignal.fold()
BaseSignal.get_current_signal()
BaseSignal.get_dimensions_from_data()
BaseSignal.get_histogram()
BaseSignal.get_noise_variance()
BaseSignal.ifft()
BaseSignal.indexmax()
BaseSignal.indexmin()
BaseSignal.integrate1D()
BaseSignal.integrate_simpson()
BaseSignal.is_rgb
BaseSignal.is_rgba
BaseSignal.is_rgbx
BaseSignal.map()
BaseSignal.max()
BaseSignal.mean()
BaseSignal.metadata
BaseSignal.min()
BaseSignal.nanmax()
BaseSignal.nanmean()
BaseSignal.nanmin()
BaseSignal.nanstd()
BaseSignal.nansum()
BaseSignal.nanvar()
BaseSignal.original_metadata
BaseSignal.plot()
BaseSignal.print_summary_statistics()
BaseSignal.rebin()
BaseSignal.rollaxis()
BaseSignal.save()
BaseSignal.set_noise_variance()
BaseSignal.set_signal_origin()
BaseSignal.set_signal_type()
BaseSignal.split()
BaseSignal.squeeze()
BaseSignal.std()
BaseSignal.sum()
BaseSignal.swap_axes()
BaseSignal.to_device()
BaseSignal.to_host()
BaseSignal.transpose()
BaseSignal.unfold()
BaseSignal.unfold_navigation_space()
BaseSignal.unfold_signal_space()
BaseSignal.unfolded()
BaseSignal.update_plot()
BaseSignal.valuemax()
BaseSignal.valuemin()
BaseSignal.var()
ModelManager
- hyperspy.signal_tools module
BackgroundRemoval
ButterworthFilter
EdgesRange
ImageContrastEditor
IntegrateArea
LineInSignal1D
LineInSignal2D
Load
PeaksFinder2D
Signal1DCalibration
Signal1DRangeSelector
Signal2DCalibration
SimpleMessage
Smoothing
SmoothingLowess
SmoothingSavitzkyGolay
SmoothingTV
SpanSelectorInSignal1D
SpikesRemovalInteractive
_get_background_estimator()
- hyperspy.signals module
- hyperspy.ui_registry module
Module contents
HyperSpy: a multi-dimensional data analysis package for Python
Documentation is available in the docstrings and online at https://hyperspy.org/hyperspy-doc/current/index.html.
All public packages, functions and classes are in api
. All
other packages and modules are for internal consumption and should not be
needed for data analysis.
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
the Start Menu
, the api
package is imported in the user
namespace as 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.api
has been imported as hs
,
numpy
as np
and matplotlib.pyplot
as plt
.
More details in the api
docstring.