diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-11-11 23:05:31 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-11-13 21:45:50 +0000 |
commit | 6dfe3318400972f414b02e3e12c83c52372f1e00 (patch) | |
tree | f05556eace312e4a86b8e7bbd865a75a4b199fc5 /doc/source/reference/random | |
parent | 231f59daab0e8ea222a21d524817b2eeb46b9cd7 (diff) | |
download | numpy-6dfe3318400972f414b02e3e12c83c52372f1e00.tar.gz |
MAINT: Remove uses of scalar aliases
Relates to gh-6103
Diffstat (limited to 'doc/source/reference/random')
-rw-r--r-- | doc/source/reference/random/index.rst | 2 | ||||
-rw-r--r-- | doc/source/reference/random/multithreading.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/reference/random/index.rst b/doc/source/reference/random/index.rst index 9b19620d8..15c161244 100644 --- a/doc/source/reference/random/index.rst +++ b/doc/source/reference/random/index.rst @@ -57,7 +57,7 @@ cleanup means that legacy and compatibility methods have been removed from ``randint``, ``integers`` Add an ``endpoint`` kwarg ``random_integers`` ------------------- -------------- ------------ -``tomaxint`` removed Use ``integers(0, np.iinfo(np.int).max,`` +``tomaxint`` removed Use ``integers(0, np.iinfo(np.int_).max,`` ``endpoint=False)`` ------------------- -------------- ------------ ``seed`` removed Use `~.SeedSequence.spawn` diff --git a/doc/source/reference/random/multithreading.rst b/doc/source/reference/random/multithreading.rst index 6883d3672..a0a31d0ea 100644 --- a/doc/source/reference/random/multithreading.rst +++ b/doc/source/reference/random/multithreading.rst @@ -41,7 +41,7 @@ seed will produce the same outputs. self.n = n self.executor = concurrent.futures.ThreadPoolExecutor(threads) self.values = np.empty(n) - self.step = np.ceil(n / threads).astype(np.int) + self.step = np.ceil(n / threads).astype(np.int_) def fill(self): def _fill(random_state, out, first, last): |