From c436e03d40d3ebb6e4e878d93b0c145f3ee5e656 Mon Sep 17 00:00:00 2001 From: phofl Date: Sun, 31 Jan 2021 22:37:02 +0100 Subject: [PATCH] CLN: Fix userguide deprecation warning new numpy --- doc/source/user_guide/enhancingperf.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 49bb923dbec39..aa9a1ba6d6bf0 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -199,8 +199,8 @@ in Python, so maybe we could minimize these by cythonizing the apply part. ...: return s * dx ...: cpdef np.ndarray[double] apply_integrate_f(np.ndarray col_a, np.ndarray col_b, ...: np.ndarray col_N): - ...: assert (col_a.dtype == np.float - ...: and col_b.dtype == np.float and col_N.dtype == np.int) + ...: assert (col_a.dtype == np.float_ + ...: and col_b.dtype == np.float_ and col_N.dtype == np.int_) ...: cdef Py_ssize_t i, n = len(col_N) ...: assert (len(col_a) == len(col_b) == n) ...: cdef np.ndarray[double] res = np.empty(n)