Skip to content

Commit

Permalink
pp.fermi_fit_func bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuadrat committed Apr 29, 2019
1 parent 409268f commit dafadc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arpys/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,15 +1086,15 @@ def fermi_fit_func(E, E_F, sigma, a, b, T=10) :
E_F float; Fermi energy in eV
sigma float; instrument resolution in units of the energy step size in *E*.
a float; slope of the linear background.
b float; offset of the linear background.
b float; offset of the linear background at *E_F*.
T float; temperature.
===== =====================================================================
"""
# Basic Fermi Dirac distribution at given T
y = fermi_dirac(E, E_F, T)

# Add a linear contribution to the 'below-E_F' part
y += (a*E+b)*step_function(E, E_F, flip=True)
y += (a*(E-E_F)+b) * step_function(E, E_F, flip=True)

# Convolve with instrument resolution
if sigma > 0 :
Expand Down

0 comments on commit dafadc8

Please sign in to comment.