Skip to content

Commit

Permalink
[fix] incorrect numpy data type for Max OS ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Oct 24, 2023
1 parent 319e8b4 commit bd88140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/triqs_dft_tools/sumk_dft_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ def fermi_dis(w, beta, der=0):
-------
f : double
"""
exponent = numpy.float128(w * beta)
exponent = numpy.longdouble(w * beta)
fermi = 1.0 / (numpy.exp(exponent) + 1)
if der == 0:
return fermi
elif der == 1:
return - beta * fermi ** 2 * numpy.exp(exponent)
else:
raise ('higher order of derivative than 1 not implemented')
raise ValueError('higher order of derivative than 1 not implemented')


def recompute_w90_input_on_different_mesh(sum_k, seedname, nk_optics, pathname='./', calc_velocity=False, calc_inverse_mass=False, oc_select='both', oc_basis='h'):
Expand Down

0 comments on commit bd88140

Please sign in to comment.