diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-11-14 05:40:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 05:40:34 -0700 |
commit | d1d9dd58e2de5f3b69c02b104e1daaeec1f38d9f (patch) | |
tree | ee22f87b400326a4f0fff79e185036783b4c8b80 /doc/source | |
parent | fae5473ee1569011cf56eda9d6f3a5067258b3ec (diff) | |
parent | 6dfe3318400972f414b02e3e12c83c52372f1e00 (diff) | |
download | numpy-d1d9dd58e2de5f3b69c02b104e1daaeec1f38d9f.tar.gz |
Merge pull request #14901 from eric-wieser/remove-uses-of-scalar-aliases
MAINT: Remove uses of scalar aliases
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/reference/random/index.rst | 2 | ||||
-rw-r--r-- | doc/source/reference/random/multithreading.rst | 2 | ||||
-rw-r--r-- | doc/source/release/1.11.0-notes.rst | 2 | ||||
-rw-r--r-- | doc/source/release/1.13.0-notes.rst | 2 |
4 files changed, 4 insertions, 4 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): diff --git a/doc/source/release/1.11.0-notes.rst b/doc/source/release/1.11.0-notes.rst index 166502ac5..1a179657b 100644 --- a/doc/source/release/1.11.0-notes.rst +++ b/doc/source/release/1.11.0-notes.rst @@ -200,7 +200,7 @@ New Features * A ``dtype`` parameter has been added to ``np.random.randint`` Random ndarrays of the following types can now be generated: - - ``np.bool``, + - ``np.bool_``, - ``np.int8``, ``np.uint8``, - ``np.int16``, ``np.uint16``, - ``np.int32``, ``np.uint32``, diff --git a/doc/source/release/1.13.0-notes.rst b/doc/source/release/1.13.0-notes.rst index 3b719db09..5d8c932fe 100644 --- a/doc/source/release/1.13.0-notes.rst +++ b/doc/source/release/1.13.0-notes.rst @@ -275,7 +275,7 @@ In particular ``np.gradient`` can now take: This means that, e.g., it is now possible to do the following:: - >>> f = np.array([[1, 2, 6], [3, 4, 5]], dtype=np.float) + >>> f = np.array([[1, 2, 6], [3, 4, 5]], dtype=np.float_) >>> dx = 2. >>> y = [1., 1.5, 3.5] >>> np.gradient(f, dx, y) |