summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-01-13 09:03:17 -0700
committerGitHub <noreply@github.com>2022-01-13 09:03:17 -0700
commitc6d95f57bff1ae390b3539bd46f1c74695b861eb (patch)
tree97539532377c89f6dd8468c82b7501f0bc8cde54 /numpy/random
parent5fee4748117e752c42ee489810f272b3e65dffd3 (diff)
parent58dbe260a2e41c31f1ab03e1abdb1f01da4c1edc (diff)
downloadnumpy-c6d95f57bff1ae390b3539bd46f1c74695b861eb.tar.gz
Merge pull request #20811 from DimitriPapadopoulos/repeated
MAINT, DOC: discard repeated words
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/_common.pyx2
-rw-r--r--numpy/random/_examples/cython/extending.pyx2
-rw-r--r--numpy/random/bit_generator.pyx2
-rw-r--r--numpy/random/tests/test_generator_mt19937.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx
index 864150458..607034a38 100644
--- a/numpy/random/_common.pyx
+++ b/numpy/random/_common.pyx
@@ -65,7 +65,7 @@ cdef object random_raw(bitgen_t *bitgen, object lock, object size, object output
Notes
-----
- This method directly exposes the the raw underlying pseudo-random
+ This method directly exposes the raw underlying pseudo-random
number generator. All values are returned as unsigned 64-bit
values irrespective of the number of bits produced by the PRNG.
diff --git a/numpy/random/_examples/cython/extending.pyx b/numpy/random/_examples/cython/extending.pyx
index 3a7f81aa0..30efd7447 100644
--- a/numpy/random/_examples/cython/extending.pyx
+++ b/numpy/random/_examples/cython/extending.pyx
@@ -31,7 +31,7 @@ def uniform_mean(Py_ssize_t n):
random_values = np.empty(n)
# Best practice is to acquire the lock whenever generating random values.
# This prevents other threads from modifying the state. Acquiring the lock
- # is only necessary if if the GIL is also released, as in this example.
+ # is only necessary if the GIL is also released, as in this example.
with x.lock, nogil:
for i in range(n):
random_values[i] = rng.next_double(rng.state)
diff --git a/numpy/random/bit_generator.pyx b/numpy/random/bit_generator.pyx
index 123d77b40..fe45f85b0 100644
--- a/numpy/random/bit_generator.pyx
+++ b/numpy/random/bit_generator.pyx
@@ -576,7 +576,7 @@ cdef class BitGenerator():
Notes
-----
- This method directly exposes the the raw underlying pseudo-random
+ This method directly exposes the raw underlying pseudo-random
number generator. All values are returned as unsigned 64-bit
values irrespective of the number of bits produced by the PRNG.
diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py
index e16a82973..7c61038a4 100644
--- a/numpy/random/tests/test_generator_mt19937.py
+++ b/numpy/random/tests/test_generator_mt19937.py
@@ -2563,7 +2563,7 @@ class TestSingleEltArrayInput:
def test_jumped(config):
# Each config contains the initial seed, a number of raw steps
# the sha256 hashes of the initial and the final states' keys and
- # the position of of the initial and the final state.
+ # the position of the initial and the final state.
# These were produced using the original C implementation.
seed = config["seed"]
steps = config["steps"]