diff --git a/python/triqs_maxent/functions.py b/python/triqs_maxent/functions.py index b34e929..6b00e27 100644 --- a/python/triqs_maxent/functions.py +++ b/python/triqs_maxent/functions.py @@ -58,8 +58,8 @@ def safelog(A): def view_complex(A, reshape=True): if not reshape: - return A.view(np.complex_) - return A.view(np.complex_).reshape(A.shape[:-1]) + return A.view(np.complex128) + return A.view(np.complex128).reshape(A.shape[:-1]) def view_real(A, reshape=True): diff --git a/test/python/set_G_tau_complex_matrix.py b/test/python/set_G_tau_complex_matrix.py index 671377b..671c278 100644 --- a/test/python/set_G_tau_complex_matrix.py +++ b/test/python/set_G_tau_complex_matrix.py @@ -70,7 +70,7 @@ def numpy_assert(a, b, dec): return np.testing.assert_almost_equal( # this is necessary in TRIQS 2.1 but will fail in 1.4 from triqs.gf.gf_fnt import replace_by_tail tail, err = G_iw_rot.fit_tail( - known_moments=np.zeros((1, 2, 2), dtype=np.complex_)) + known_moments=np.zeros((1, 2, 2), dtype=np.complex128)) replace_by_tail(G_iw_rot, tail, 200) except: pass