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

set_ai#

Diffraction2D.set_ai(center=None, wavelength=None, affine=None, radial_range=None, **kwargs)[source]#

[Deprecated] This function sets the .ai parameter which stores an ~pyfai.AzimuthalIntegrator object based on the current calibration applied to the diffraction pattern.

Parameters:
  • center ((x,y) or None) – The center of the diffraction pattern. If None, the center is the middle of the image.

  • wavelength (float) – The wavelength of the energy in 1/meters. For proper treatment of Ewald Sphere

  • affine (numpy.Array 3x3) – A 3x3 array which describes the affine distortion of the pattern. This is translated to a spline interpolation which is used in the pyFAI implementations

  • radial_range ((start,stop)) – The start and stop of the radial range in real units

Returns:

The metadata item Signal.ai is set

Return type:

None

Notes

Deprecated since version 0.18: Function set_ai() is deprecated and will be removed in version 1.0.0. Use pyxem.signals.diffraction2d.calibrate() instead.