8000 [skip ci] Merge branch 'main' into overhaul-of-main-namespace-part-2 · numpy/numpy@ed17e34 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed17e34

Browse files
committed
[skip ci] Merge branch 'main' into overhaul-of-main-namespace-part-2
2 parents 8e60daa + 3fa0d7e commit ed17e34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+224
-846
lines changed

.circleci/config.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ version: 2.1
88
_defaults: &defaults
99
docker:
1010
# CircleCI maintains a library of pre-built images
11-
# documented at https://circleci.com/docs/2.1/circleci-images/
12-
# circleci/python3.8 images come with old versions of Doxygen(1.6.x),
13-
# therefore a new base image chose instead to guarantee to
14-
# have a newer version >= 1.8.10 to avoid warnings
15-
# that related to the default behaviors or non-exist config options
16-
- image: cimg/python:3.9
11+
# documented at https://circleci.com/developer/images/image/cimg/python
12+
- image: cimg/python:3.11.4
1713
working_directory: ~/repo
1814

1915

@@ -54,15 +50,17 @@ jobs:
5450
#sudo apt-get install -y python3.9 python3.9-dev python3-venv graphviz texlive-fonts-recommended texlive-latex-recommended \
5551
sudo apt-get install -y graphviz texlive-fonts-recommended texlive-latex-recommended \
5652
texlive-latex-extra latexmk texlive-xetex texlive-lang-chinese doxygen
57-
python3.9 -m venv venv
53+
python3.11 -m venv venv
5854
. venv/bin/activate
5955
6056
- run:
6157
name: build numpy
6258
command: |
6359
. venv/bin/activate
6460
pip install --progress-bar=off -r test_requirements.txt
65-
pip install --progress-bar=off -r doc_requirements.txt
61+
# get newer, pre-release versions of critical packages
62+
pip install --progress-bar=off --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple -r doc_requirements.txt
63+
# then install numpy HEAD, which will override the version installed above
6664
pip install . --config-settings=setup-args="-Dallow-noblas=true"
6765
6866
- run:

benchmarks/benchmarks/bench_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class LinalgSmallArrays(Benchmark):
102102
""" Test overhead of linalg methods for small arrays """
103103
def setup(self):
104104
self.array_5 = np.arange(5.)
105-
self.array_5_5 = np.arange(5.)
105+
self.array_5_5 = np.reshape(np.arange(25.), (5., 5.))
106106

107107
def time_norm_small_array(self):
108108
np.linalg.norm(self.array_5)

doc/neps/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191

9292
html_theme_options = {
9393
"github_url": "https://github.com/numpy/numpy",
94-
"twitter_url": "https://twitter.com/numpy_team",
9594
"external_links": [
9695
{"name": "Wishlist",
9796
"url": "https://github.com/numpy/numpy/issues?q=is%3Aopen+is%3Aissue+label%3A%2223+-+Wish+List%22",
@@ -183,4 +182,3 @@
183182
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
184183
'matplotlib': ('https://matplotlib.org', None)
185184
}
186-
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* The ``fasttake``, ``fastclip``, and ``fastputmask`` ``ArrFuncs``
2+
deprecation is now finalized.
3+
* The deprecated function ``fastCopyAndTranspose`` and its C counterpart
4+
is now removed.
5+
* The deprecation of ``PyArray_ScalarFromObject`` is now finalized.

doc/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ def setup(app):
188188
"image_dark": "numpylogo_dark.svg",
189189
},
190190
"github_url": "https://github.com/numpy/numpy",
191-
"twitter_url": "https://twitter.com/numpy_team",
192191
"collapse_navigation": True,
193192
"external_links": [
194193
{"name": "Learn", "url": "https://numpy.org/numpy-tutorials/"},

doc/source/dev/development_workflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ from running the test suite on different operating systems and hardware
196196
platforms to building the docs. In some cases you already know that CI isn't
197197
needed (or not all of it), for example if you work on CI config files, text in
198198
the README, or other files that aren't involved in regular build, test or docs
199-
sequences. In such cases you may explicitly skip CI by including one of these
200-
fragments in your commit message:
199+
sequences. In such cases you may explicitly skip CI by including one or more of
200+
these fragments in each commit message of a PR:
201201

202202
* ``[skip ci]``: skip all CI
203203

doc/source/reference/arrays.classes.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ on item retrieval and comparison operations.
511511

512512
.. _arrays.classes.rec:
513513

514-
Record arrays (:mod:`numpy.rec`)
515-
================================
514+
Record arrays
515+
=============
516516

517517
.. seealso:: :ref:`routines.array-creation.rec`, :ref:`routines.dtype`,
518518
:ref:`arrays.dtypes`.
@@ -529,6 +529,11 @@ scalar data type object :class:`record`.
529529
recarray
530530
record
531531

532+
.. note::
533+
534+
The pandas DataFrame is more powerful than record array. If possible,
535+
please use pandas DataFrame instead.
536+
532537
Masked arrays (:mod:`numpy.ma`)
533538
===============================
534539

doc/source/reference/arrays.dtypes.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,16 @@ Built-in Python types
176176
Several python types are equivalent to a corresponding
177177
array scalar when used to generate a :class:`dtype` object:
178178

179-
================ ===============
180-
:class:`int` :class:`int\_`
181-
:class:`bool` :class:`bool\_`
182-
:class:`float` :class:`float\_`
183-
:class:`complex` :class:`cfloat`
184-
:class:`bytes` :class:`bytes\_`
185-
:class:`str` :class:`str\_`
186-
:class:`buffer` :class:`void`
187-
(all others) :class:`object_`
188-
================ ===============
179+
=================== ===============
180+
:class:`int` :class:`int\_`
181+
:class:`bool` :class:`bool\_`
182+
:class:`float` :class:`float\_`
183+
:class:`complex` :class:`cfloat`
184+
:class:`bytes` :class:`bytes\_`
185+
:class:`str` :class:`str\_`
186+
:class:`memoryview` :class:`void`
187+
(all others) :class:`object_`
188+
=================== ===============
189189

190190
Note that ``str_`` corresponds to UCS4 encoded unicode strings, while
191191
``string_`` is an alias to ``bytes_``. The name ``np.unicode_`` is also

doc/source/reference/arrays.interface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ This approach to the interface consists of the object having an
179179

180180
**offset** (optional)
181181
An integer offset into the array data region. This can only be
182-
used when data is ``None`` or returns a :class:`buffer`
182+
used when data is ``None`` or returns a :class:`memoryview`
183183
object.
184184

185185
**Default**: ``0``.

doc/source/reference/arrays.ndarray.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ changes made in one :class:`ndarray` may be visible in another. That
2626
is, an ndarray can be a *"view"* to another ndarray, and the data it
2727
is referring to is taken care of by the *"base"* ndarray. ndarrays can
2828
also be views to memory owned by Python :class:`strings <str>` or
29-
objects implementing the :class:`buffer` or :ref:`array
29+
objects implementing the :class:`memoryview` or :ref:`array
3030
<arrays.interface>` interfaces.
3131

3232

doc/source/reference/arrays.scalars.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ are also provided.
364364
.. attribute:: intp
365365

366366
Alias for the signed integer type (one of `numpy.byte`, `numpy.short`,
367-
`numpy.intc`, `numpy.int_` and `np.longlong`) that is the same size as a
367+
`numpy.intc`, `numpy.int_` and `numpy.longlong`) that is the same size as a
368368
pointer.
369369

370370
Compatible with the C ``intptr_t``.
@@ -374,7 +374,7 @@ are also provided.
374374
.. attribute:: uintp
375375

376376
Alias for the unsigned integer type (one of `numpy.ubyte`, `numpy.ushort`,
377-
`numpy.uintc`, `numpy.uint` and `np.ulonglong`) that is the same size as a
377+
`numpy.uintc`, `numpy.uint` and `numpy.ulonglong`) that is the same size as a
378378
pointer.
379379

380380
Compatible with the C ``uintptr_t``.

0 commit comments

Comments
 (0)
0