#NEWLINE# def atan_gamma( ene , gamma_hole , gamma_max = 15.0 , e0 = 0 , eslope = 1.0 ) : #NEWLINE# #INDENT# 'returns arctangent-like broadening, $\\Gamma(E)$\n\n    ..math\n\n    \\Gamma(E) = \\Gamma_{hole} + \\Gamma_{max} * ( \\arctan( \\frac{E-E_{0}}{E_{slope}} ) / \\pi + 1/2) )\n    ' #NEWLINE# if ( eslope == 0 ) : #NEWLINE# #INDENT# print ( 'Warning: eslope cannot be zero, using default value of 1' ) #NEWLINE# eslope = 1.0 #NEWLINE# #UNINDENT# return ( gamma_hole + ( gamma_max * ( ( np . arctan ( ( ( gamma_max - e0 ) / eslope ) ) / np . pi ) + 0.5 ) ) )