Skip to content

Commit 6418c4d

Browse files
Backport PR #39512: CLN: Fix userguide deprecation warning new numpy (#39530)
Co-authored-by: patrick <[email protected]>
1 parent eaf661d commit 6418c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/enhancingperf.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ in Python, so maybe we could minimize these by cythonizing the apply part.
199199
...: return s * dx
200200
...: cpdef np.ndarray[double] apply_integrate_f(np.ndarray col_a, np.ndarray col_b,
201201
...: np.ndarray col_N):
202-
...: assert (col_a.dtype == np.float
203-
...: and col_b.dtype == np.float and col_N.dtype == np.int)
202+
...: assert (col_a.dtype == np.float_
203+
...: and col_b.dtype == np.float_ and col_N.dtype == np.int_)
204204
...: cdef Py_ssize_t i, n = len(col_N)
205205
...: assert (len(col_a) == len(col_b) == n)
206206
...: cdef np.ndarray[double] res = np.empty(n)

0 commit comments

Comments
 (0)