abtem.core.energy#
Module for handling electron energy.
Module Contents#
Classes#
Accelerator object describes the energy of wave functions and transfer functions. |
|
Mixin class for objects that have an electron energy. |
Functions#
Calculate relativistic mass from energy. |
|
Calculate interaction parameter from energy. |
|
Calculate relativistic de Broglie wavelength from energy. |
|
Convert reciprocal space sampling in 1/Å to angular sampling in mrad. |
|
Calculate relativistic mass correction from energy. |
|
Data#
API#
- class abtem.core.energy.Accelerator(...)[source]#
Bases:
abtem.core.utils.EqualityMixin,abtem.core.utils.CopyMixinAccelerator object describes the energy of wave functions and transfer functions.
- Parameters:
energy (float) – Acceleration energy [eV].
Initialization
- check_match(...)[source]#
Raise error if the accelerator of another object is different from this object.
- Parameters:
other (Accelerator object) – The accelerator that should be checked.
- exception abtem.core.energy.EnergyUndefinedError[source]#
Bases:
ExceptionError raised when energy is not defined.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- class abtem.core.energy.HasAcceleratorMixin[source]#
Mixin class for objects that have an electron energy.
- property accelerator: Accelerator#
Accelerator object describing the acceleration energy.
- abtem.core.energy.T#
‘TypeVar(…)’
- abtem.core.energy.energy2mass(...) float[source]#
Calculate relativistic mass from energy.
- Parameters:
[eV]. (enerElectron energy)
- Returns:
Relativistic mass [kg]̄
- Return type:
- abtem.core.energy.energy2wavelength(...) float[source]#
Calculate relativistic de Broglie wavelength from energy.
- abtem.core.energy.reciprocal_space_sampling_to_angular_sampling(...) abtem.core.energy.T[source]#
Convert reciprocal space sampling in 1/Å to angular sampling in mrad.