model2theta_scale#

ElectronDiffraction1D.model2theta_scale(simulation, model, beam_energy)[source]#

Find the theta calibration scale for a 1d diffraction pattern based on a diffsims.simulations.Simulation1D, a hyperspy.models.Model1D and the beam energy.

Parameters:
  • simulation (diffsims.simulations.Simulation1D) – The simulation of a 1D “powder” diffraction pattern.

  • model (hyperspy.models.Model1D) – The model for fitting the diffraction peaks to a 1D diffraction pattern.

  • beam_energy (float) – The beam energy in keV.

Notes

This functionality is still under development and may change slightly in the future.