Check out the Hyperspy Workshop May 13-17, 2024 Online

get_distortion_residuals#

CalibrationGenerator.get_distortion_residuals(mask_radius, spread)[source]#

Obtain residuals for experimental data and distortion corrected data with respect to a simulated symmetric ring pattern.

Parameters:
  • mask_radius (int) – Radius, in pixels, for a mask over the direct beam disc.

  • spread (float) – Gaussian spread of each ring in the simulated pattern.

Returns:

  • diff_init (ElectronDiffraction2D) – Difference between experimental data and simulated symmetric ring pattern.

  • diff_end (ElectronDiffraction2D) – Difference between distortion corrected data and simulated symmetric ring pattern.