epraya.Fitting#

Fitting(Hamer, Exper, Vara, datexp)#

Wrap function for the data fitting process. Creates a interactive display where the user can select the fitting method, data and sample type, max. number of iterations and reference error.

Parameters:
  • Hamer (Class) – Container for the hamiltonian parameters.

  • Exper (Class) – Container for the experimental conditions.

  • Vara (Class) – Container for the range and parameters to vary.

  • datexp (np.array) – Experimental spectrum data to fit.

Example

import epraya as epr
B,spc=epr.Seek()
Ham,Exp,Vary=epr.Start()
Ham.S=1/2
Ham.g=[2.003,2.003,2.003]
Ham.Hpp=[0,3]
Exp.Points=4096
Exp.Frange=[B[0],B[-1]]
Vary.g=[2.,2.2,2,2.2,2.,2.2]
epr.Fitting(Ham,Exp,Vary,spc)
Plot of the Fit1 function. Plot of the Fit2 function.