hyperspy.models.edstemmodel module

class hyperspy.models.edstemmodel.EDSTEMModel(spectrum, auto_background=True, auto_add_lines=True, *args, **kwargs)

Bases: EDSModel

Build and fit a model to EDS data acquired in the TEM.

Parameters:
  • spectrum (EDSTEMSpectrum) –

  • auto_add_lines (bool) – If True, automatically add Gaussians for all X-rays generated in the energy range by an element, using the edsmodel.add_family_lines method.

  • auto_background (bool) – If True, adds automatically a polynomial order 6 to the model, using the edsmodel.add_polynomial_background method.

  • constructor. (Any extra arguments are passed to the Model) –