GaussianScatteringFactors#

class abtem.integrals.GaussianScatteringFactors(gaussian_scattering_factors, error_function_scales, correction_scattering_factors)[source]#

Bases: abtem.integrals.ProjectionIntegrator

__init__(gaussian_scattering_factors, error_function_scales, correction_scattering_factors)[source]#

Methods

__init__(gaussian_scattering_factors, ...)

integrate_on_grid(positions, a, b, gpts, ...)

Integrate radial potential between two limits at the given 2D positions on a grid.

integrate_on_grid(positions, a, b, gpts, sampling, device='cpu', fourier_space=False)[source]#

Integrate radial potential between two limits at the given 2D positions on a grid. The integration limits are only used when the integration method is finite.

Parameters
  • positions (np.ndarray) – 2D array of xy-positions of the centers of each radial function [Å].

  • a (np.ndarray) – Lower integration limit of the projection integrals along z for each position [Å]. The limit is given relative to the center of the radial function.

  • b (np.ndarray) – Upper integration limit of the projection integrals along z for each position [Å]. The limit is given relative to the center of the radial function.

  • gpts (two int) – Number of grid points in x and y describing each slice of the potential.

  • sampling (two float) – Sampling of the potential in x and y [1 / Å].

  • device (str, optional) – The device used for calculating the potential, ‘cpu’ or ‘gpu’. The default is determined by the user configuration file.

Return type

ndarray