summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Bump pydata-sphinx-theme from 0.3.2 to 0.4.0dependabot/pip/pydata-sphinx-theme-0.4.0dependabot-preview[bot]2020-09-071-1/+1
| | | | | | | Bumps [pydata-sphinx-theme](https://github.com/pandas-dev/pydata-sphinx-theme) from 0.3.2 to 0.4.0. - [Release notes](https://github.com/pandas-dev/pydata-sphinx-theme/releases) - [Commits](https://github.com/pandas-dev/pydata-sphinx-theme/compare/v0.3.2...v0.4.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Merge pull request #17225 from seberg/fix-broken-up-ragged-arrayCharles Harris2020-09-042-1/+23
|\ | | | | BUG: Fix dimension discovery of within array ragged cases
| * Update numpy/core/tests/test_array_coercion.pySebastian Berg2020-09-021-0/+1
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * BUG: Fix dimension discovery of within array ragged casesSebastian Berg2020-09-022-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | When `np.array(...)` finds a shape mismatch while inspecting an array (or array-like), the current logic is to use only part of those dimensions (as many as possible). This case was buggy in the new code, and is now fixed. In general, we may want to change the logic here, e.g. to always strip all dimensions of that array (allowing an object array of arrays), but there are some corner cases where the current behaviour somewhat "works", so this fixes a bug while gh-17224 and the issues around it remain independently.
* | Merge pull request #17223 from mattip/setuptools1Charles Harris2020-09-046-25/+15
|\ \ | | | | | | MAINT: use sysconfig not distutils.sysconfig where possible
| * | MAINT: EXT_SUFFIX differs between sysconfig and distutils.sysconfigMatti Picus2020-09-041-2/+2
| | |
| * | MAINT: fix win exec_prefixmattip2020-09-031-1/+1
| | |
| * | MAINT: use sysconfig not distutils.sysconfig where possiblemattip2020-09-027-27/+17
| |/
* | Merge pull request #17220 from mattip/fix17210Matti Picus2020-09-041-1/+2
|\ \ | | | | | | BUG, DOC: comment out metadata added via javascript
| * | BUG: comment out metadata added via javascriptmattip2020-09-021-1/+2
| |/
* | Merge pull request #17242 from hugovk/speedup-ciCharles Harris2020-09-031-26/+28
|\ \ | | | | | | MAINT: Run slow CI jobs earlier so builds finishes sooner
| * | MAINT: Run slow CI jobs earlier so they free up parallel slots soonerHugo2020-09-031-26/+28
| | |
* | | Merge pull request #17193 from eric-wieser/clean-compatSebastian Berg2020-09-037-42/+34
|\ \ \ | | | | | | | | MAINT: Remove some callers of functions in numpy.compat
| * | | MAINT: Remove users of `numpy.compat.bytes`Eric Wieser2020-08-313-3/+3
| | | | | | | | | | | | | | | | Some more Python 2 cleanup.
| * | | MAINT: Remove users of `numpy.compat.open_latin1`Eric Wieser2020-08-311-32/+27
| | | | | | | | | | | | | | | | | | | | Some more Python 2 cleanup. Also switches to use with statements, as previous passes looking for bare `open()` calls would have missed these
| * | | MAINT: Remove users of `numpy.compat.strchar`Eric Wieser2020-08-311-2/+1
| | | | | | | | | | | | | | | | Some more Python 2 cleanup
| * | | MAINT: Remove users of `numpy.compat.integer_types`Eric Wieser2020-08-312-5/+3
| | | | | | | | | | | | | | | | Some more Python 2 cleanup
* | | | MAINT: added exception chaining in shape_base.py (gh-17240)EthanCJ-git2020-09-031-1/+1
| | | | | | | | | | | | | | | | This edit is relation to issue gh-15986. Chained exception in shape_base.py
* | | | Merge pull request #17145 from charris/cleanup-pystring_asstring-usageSebastian Berg2020-09-033-7/+21
|\ \ \ \ | | | | | | | | | | MAINT, BUG: Replace uses of PyString_AsString.
| * | | | MAINT: Replace uses of PyString_AsString.Charles Harris2020-09-033-7/+21
| | |_|/ | |/| | | | | | | | | | | | | | PyString_AsString is defined in the npy_3kcompat.h file and can be replace by its definition now that we no longer support Python 2.
* | | | Merge pull request #16134 from seberg/concatenate-dtypeMatti Picus2020-09-037-34/+193
|\ \ \ \ | | | | | | | | | | ENH: Implement concatenate dtype and casting keyword arguments
| * | | | DOC: Fixup deprecation datesSebastian Berg2020-09-033-3/+4
| | | | |
| * | | | Update doc/release/upcoming_changes/16134.compatibility.rstSebastian Berg2020-09-031-5/+5
| | | | | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | | | Fixup: Mention that it will be a TypeError (Anirudh's review)Sebastian Berg2020-09-021-2/+3
| | | | |
| * | | | Apply suggestions from code reviewSebastian Berg2020-09-023-4/+4
| | | | | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | ENH: Implement concatenate dtype and casting keyword argumentsSebastian Berg2020-09-027-34/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, the casting was not consistent and sometimes used force casting (axis=None) while normally same kind casting was used. This thus deprecates the `force_casting` corner case, so that casting has to be provided in the future.
* | | | | Merge pull request #17191 from numpy/dependabot/pip/hypothesis-5.30.0Sebastian Berg2020-09-031-1/+1
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Bump hypothesis from 5.26.0 to 5.30.0
| * | | | | MAINT: Bump hypothesis from 5.26.0 to 5.30.0dependabot/pip/hypothesis-5.30.0dependabot-preview[bot]2020-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 5.26.0 to 5.30.0. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-5.26.0...hypothesis-python-5.30.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | | | | Merge pull request #17233 from eric-wieser/deprecate-ndincrSebastian Berg2020-09-032-0/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | DEP: Deprecated ndindex.ndincr
| * | | | | | DEP: Deprecated ndindex.ndincrEric Wieser2020-09-032-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The "do not use" comment has been here since bb0e4f356cce2f199d9c08ffe572fbabadc846d1.
* | | | | | | DOC: Use SPDX license expressions with correct license (gh-17238)Philippe Ombredanne2020-09-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use SPDX license expressions with correct license tools/npy_tempita/license.txt license is MIT not a "BSD Derived" Also use SPDX license identifiers and expressions for clarity Based on original report at https://github.com/nexB/scancode-toolkit/issues/2189 Reported-by: Frank Viernau <frank.viernau@here.com> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com> * Use correct case for BSD licenses identifers Reported-by: Sebastian Berg <sebastian@sipsolutions.net> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* | | | | | | Merge pull request #17239 from seberg/random-quickstart-linkCharles Harris2020-09-032-43/+43
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Fix link quick-start in old random API functions
| * | | | | | | DOC: Fix the link to the quick-start in the old API functionsSebastian Berg2020-09-032-43/+43
|/ / / / / / /
* | | | | | | Merge pull request #17237 from charris/fix-flatiter-typingMatti Picus2020-09-031-1/+1
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | BUG: Avoid using ``np.random`` in typing tests.
| * | | | | | BUG: Avoid using ``np.random`` in typing tests.Charles Harris2020-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `np.random` can cause mysterious test failures in mypy `api.run` with a report that 'error: Module has no attribute "rand"'. The fix here is to use `np.empty` instead of `np.random.rand`. Why this works is unknown at present.
* | | | | | | Merge pull request #17127 from bashtage/npymath-removeMatti Picus2020-09-031-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | MAINT: Remove duplicated symbols from link step
| * | | | | | BLD: Replace source files with libKevin Sheppard2020-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use lib to find symbols rather than object files
| * | | | | | MAINT: Remove deplicated symbols from link stepKevin Sheppard2020-08-301-1/+1
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Remove npymath lib from _multiarray_umath since it contains symbols defined in object files being linked
* | | | | | MAINT, DOC: move informational files from numpy.doc.*.py to their *.rst ↵Matti Picus2020-09-0228-3848/+3776
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | counterparts (#17222) * DOC: redistribute docstring-only content from numpy/doc * DOC: post-transition clean-up * DOC, MAINT: reskip doctests, fix a few easy ones
* | | | | Merge pull request #17168 from seberg/test_metadata_promotionMatti Picus2020-09-021-0/+104
|\ \ \ \ \ | | | | | | | | | | | | TST: Add tests mapping out the rules for metadata in promotion
| * | | | | TST: Add tests mapping out the rules for metadata in promotionSebastian Berg2020-08-281-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that these rules do not actually make much sense often. They depend on a lot of suble branches, which probably grew over time without much regard for metadata. The test is ugly, but maps them out to detect changes in behaviour. At some point, we should probably define how metadata and promotion works. Such as always merging dicts, always drop if the original dtype is lost? That assumes that metadata can be a useful concept which makes sense to "inherit" during promotion. Its also plausible that we should just always strip metadata during promotion.
* | | | | | ENH: Added missing methods to `np.flatiter` (#17180)Bas van Beek2020-09-024-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MAINT: Added missing methods to `np.flatiter` * DOC: Added a comment about weird `flatiter.__getitem__` behavior Contrary to `ndarray.__getitem__` its counterpart in `flatiter` does not accept objects with the `__array__` or `__index__` protocols; boolean indexing is just plain broken (gh-17175)
* | | | | | DOC: Fix the documented signatures of four `ufunc` methods (#17199)Bas van Beek2020-09-021-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Clarify that a number of ufunc-related parameters are positional-only * DOC: Fixed an incorrect parameter name `a' should be `array` in `np.ufunc.reduce()` * DOC: Fixed an incorrect parameter name in `ufunc.reduceat` * DOC: Replace all leftover references to `a` with `array` * DOC: Replace two more leftover references to `a` with `array`
* | | | | | ENH: random: Add the method `permuted` to Generator. (#15121)Warren Weckesser2020-09-023-62/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: random: Make _shuffle_raw and _shuffle_int standalone functions. * ENH: random: Add the method `permuted` to Generator. The method permuted(x, axis=None, out=None) shuffles an array. Unlike the existing shuffle method, it shuffles the slices along the given axis independently. Closes gh-5173.
* | | | | | Merge pull request #17182 from seberg/doc-metadataMatti Picus2020-09-022-0/+46
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Document `dtype.metadata`
| * | | | | | Apply suggestions from code reviewSebastian Berg2020-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | | | DOC: Adopt (slightly modified) Ben's suggestionsSebastian Berg2020-08-311-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Making one of the in-text suggestions slightly adapted into a warning.
| * | | | | | Update numpy/core/_add_newdocs.pySebastian Berg2020-08-291-3/+3
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | | | DOC: Document ``dtype.metadata``Sebastian Berg2020-08-282-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds some basic documentation to the ``dtype.metadata`` attribute. Note that none of the documentation mentions metadata including https://numpy.org/devdocs/reference/arrays.dtypes.html
* | | | | | | DOC: Use official MATLAB spelling in numpy-for-matlab-users.rst (gh-17215)Ryan C Cooper2020-09-021-34/+34
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove (R) from all MATLAB mentions except the first * Update doc/source/user/numpy-for-matlab-users.rst update the MATLAB case L53 Co-authored-by: Eric Wieser <wieser.eric@gmail.com> * change case of all M/matlab to MATLAB * Update doc/source/user/numpy-for-matlab-users.rst replace (R) in reference to Mathworks reference Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>