File: 0010-Do-not-run-timeit-during-documentation-build.patch

package info (click to toggle)
numpy 1%3A2.3.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 86,072 kB
  • sloc: python: 255,800; asm: 232,483; ansic: 212,593; cpp: 157,465; f90: 1,575; sh: 845; fortran: 567; makefile: 431; sed: 139; xml: 109; java: 97; perl: 82; cs: 62; javascript: 53; objc: 33; lex: 13; yacc: 9
file content (38 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sat, 18 Oct 2025 11:03:21 +0200
Subject: Do not run %timeit during documentation build

---
 doc/source/reference/random/new-or-different.rst | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/doc/source/reference/random/new-or-different.rst b/doc/source/reference/random/new-or-different.rst
index 44cf7aa..581cd4e 100644
--- a/doc/source/reference/random/new-or-different.rst
+++ b/doc/source/reference/random/new-or-different.rst
@@ -44,25 +44,6 @@ Feature                 Older Equivalent   Notes
   `~.Generator.standard_gamma`. Because of the change in algorithms, it is not
   possible to reproduce the exact random values using `Generator` for these
   distributions or any distribution method that relies on them.
-
-.. ipython:: python
-
-  import numpy.random
-  rng = np.random.default_rng()
-  %timeit -n 1 rng.standard_normal(100000)
-  %timeit -n 1 numpy.random.standard_normal(100000)
-
-.. ipython:: python
-
-  %timeit -n 1 rng.standard_exponential(100000)
-  %timeit -n 1 numpy.random.standard_exponential(100000)
-
-.. ipython:: python
-
-  %timeit -n 1 rng.standard_gamma(3.0, 100000)
-  %timeit -n 1 numpy.random.standard_gamma(3.0, 100000)
-
-
 * `~.Generator.integers` is now the canonical way to generate integer
   random numbers from a discrete uniform distribution. This replaces both
   `randint` and the deprecated `random_integers`.