summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "MRG, ENH: added edge keyword argument to digitize"revert-16248-edgeEric Wieser2020-07-233-43/+3
|
* Merge pull request #16248 from alexrockhill/edgeMatti Picus2020-07-233-3/+43
|\ | | | | MRG, ENH: added edge keyword argument to digitize
| * added release noteAlex2020-07-221-0/+13
| |
| * change != to ==Alex2020-07-221-1/+1
| |
| * fixed simplifyAlex2020-07-221-5/+10
| |
| * simplifiedAlex2020-07-222-14/+14
| |
| * forgot to include monotonicityAlex2020-07-221-2/+2
| |
| * changed from large number error to different solutionAlex2020-07-222-9/+11
| |
| * edge first tryAlex2020-07-222-2/+22
|/ | | | | | ENH: added edge keyword argument to digitize added test
* Merge pull request #16925 from charris/post-1.19.1-updatesRalf Gommers2020-07-224-0/+124
|\ | | | | REL: Update master after 1.19.1 release.
| * REL: Update master after 1.19.1 release.Charles Harris2020-07-214-0/+124
|/
* Merge pull request #16919 from rossbar/doc/add_ufuncMatti Picus2020-07-212-3/+6
|\ | | | | DOC: Add ufunc docstring to generated docs.
| * DOC: Add ufunc docstring to generated docs.Ross Barnowski2020-07-202-3/+6
| | | | | | | | | | | | | | | | Adds the ufunc class to the documentation so that it is included in the generated html docs and all links to it work. Slightly modify ufunc docstring to remove unrecognized heading name.
* | Merge pull request #16850 from seberg/deprecate-object-scalarsMatti Picus2020-07-211-0/+26
|\ \ | | | | | | DEP: Deprecate NumPy object scalars
| * | DEP: Deprecate NumPy object scalarsSebastian Berg2020-07-131-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | NumPy object scalars should not exist, since they should always just return the actual scalar in the first place. Put a deprecation warning in place to be rapidly changed into a TypeError. Once allocating it gives an error, we can make all methods raise errors (with the exception of `__new__`.
* | | ENH: Integrate the new CPU dispatcher with umath generator (#16888)Sayed Adel2020-07-211-3/+24
| | | | | | | | | | | | | | | | | | Add new attribute `dispatch` to umath generator, same usage as the current attribute `simd` but requires the name of the dispatch-able source without its extension rather than CPU features names.
* | | MAINT: Avoid exception in NpzFile destructor if constructor raises ↵John Zwinck2020-07-211-2/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BadZipFile (#15604) Previously if you gave an invalid zip file to NpzFile, zipfile_factory would raise BadZipFile and NpzFile.__exit__ would be called, which accessed members which had not yet been set, leading to a confusing second exception like this: zipfile.BadZipFile: File is not a zip file Exception ignored in: <function NpzFile.__del__ at 0x9b8ef0> Traceback (most recent call last): File "numpy/lib/npyio.py", line 230, in __del__ self.close() File "numpy/lib/npyio.py", line 221, in close if self.zip is not None: AttributeError: 'NpzFile' object has no attribute 'zip' This change makes __exit__ safe even when __init__ did not complete.
* | Merge pull request #16914 from seberg/string-to-complexCharles Harris2020-07-203-4/+61
|\ \ | | | | | | BUG: Fix string/bytes to complex assignment
| * | BUG: Fix string/bytes to complex assignmentSebastian Berg2020-07-203-4/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a regression, which happened because of discrepencies between setting a single item from a string (which was not possible) and casting from a string to array (which was possible before). The seconnd code path changed, relying on the former behaviour, which broke it. This fixes the issue by bringing the second branch in line. Closes gh-16909
* | | Merge pull request #16910 from numpy/dependabot/pip/hypothesis-5.20.2Charles Harris2020-07-201-1/+1
|\ \ \ | | | | | | | | MAINT: Bump hypothesis from 5.19.1 to 5.20.2
| * | | MAINT: Bump hypothesis from 5.19.1 to 5.20.2dependabot/pip/hypothesis-5.20.2dependabot-preview[bot]2020-07-201-1/+1
|/ / / | | | | | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 5.19.1 to 5.20.2. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-5.19.1...hypothesis-python-5.20.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | Merge pull request #16899 from tacaswell/mnt_more_py310Charles Harris2020-07-182-1/+3
|\ \ \ | | | | | | | | MNT: also use Py_SET_REFCNT instead of Py_REFCNT
| * | | MNT: also use Py_SET_REFCNT instead of Py_REFCNTThomas A Caswell2020-07-182-1/+3
| | | | | | | | | | | | | | | | This is required to support Python 3.10.
* | | | TST, BUG: Re-raise MemoryError exception in test_large_zip's process (gh-16890)Antonio Larrosa2020-07-181-8/+22
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since #15893, test_large_zip's actual test is run in a child process, so when this test raises a MemoryError exception, the exception is lost and the @requires_memory decorator can't catch it to return an xfail. This commit uses a boolean variable in shared memory to flag if the exception was raised, and in that case, re-raise it in the parent process. Fixes #16889
* | | MAINT: Remove Duplicated Code (function extract rmap) (#16847)Wansoo Kim2020-07-171-16/+13
| | | | | | | | | | | | | | | * MAINT: Remove Duplicated Code (function extract rmap) Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | Merge pull request #16532 from seberg/delete-sigint-handlingMatti Picus2020-07-174-116/+16
|\ \ \ | | | | | | | | BUG: Remove non-threadsafe sigint handling from fft calculation
| * | | BUG: Remove non-threadsafe sigint handling from fft calculationSebastian Berg2020-06-254-116/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fft calculation is the only point in our code where this function is used. Allowing Ctrl+C, in FFT specifically used have more reasons, since before pocketfft, some array-sizes could lead to very large run-times. Pocketfft fixed that issue, and now FFT is not really any slower, faster, or memory hungry than any other NumPy operation so it feels it does not need this handling. Rather, if we can find a better solution, it should also be added to more functions. The reason for removal is that it is not only unsafe while the FFT is running (in theory). Multiple, threaded FFT run can easily leave the signal handler in a bad state, causing crashes if Ctrl+C (sigint) is given at any point after the call. It would be possible to patch that over, by only resetting the signal handler if we actually changed it (or even more complex tricks), or possibly only using this technique when on the main thread. But, all of these solutions seem to complicate things, when the main reason for why allowing sigint seems useful is gone with pocketfft.
* | | | Merge pull request #16232 from seberg/ufunc-outer-matrixMatti Picus2020-07-175-24/+109
|\ \ \ \ | | | | | | | | | | DEP: Deprecate ufunc.outer with matrix inputs
| * | | | DEP: Deprecate ufunc.outer with matrix inputsSebastian Berg2020-07-164-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we converted matrices to arrays for the user, since `np.outer` does not make sense for matrix. This deprecates that usage (which in almost all cases will result in an error). The main reason for this deprecation is to remove all direct references of matrix from the NumPy codebase, so that it is easier to move it out of NumPy eventually.
| * | | | MAINT: Simplify ufunc.outer and raise error on bad reshapeSebastian Berg2020-07-162-23/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies the reshaping logic to use the NewShape function (this was previously impossible due to the split of umath and multiarray). It adds new errors if reshapes are bad, which currently is only possible for bad subclasses. However, `np.matrix` is the main bad subclass here, so this is in preparation of deprecating it.
* | | | | Merge pull request #16883 from rossbar/bug/bad_mpl_kwarg_hist2dSebastian Berg2020-07-161-1/+1
|\ \ \ \ \ | | | | | | | | | | | | BUG,DOC: Fix bad MPL kwarg in docs
| * | | | | BUG,DOC: Fix bad MPL kwarg.Ross Barnowski2020-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invalide kwarg to imshow causes failures in the plot directive for docs builds using MPL > v3.3
* | | | | | DOC: describe ufunc copy behavior when input and output overlap (#16826)Neal C2020-07-161-0/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Describing ufunc copy behaviour when input and output overlaps. Closes #16749 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | | | Merge pull request #16854 from ↵Matti Picus2020-07-161-0/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | leeyspaul/clarify-new-feature-requirements-in-contributing-docs DOC: clarify whats required for new features see #13924
| * | | | | DOC: fix mailing list linkRoss Barnowski2020-07-151-2/+5
| | | | | |
| * | | | | refactor to make guidelines seem less formulaicPaul2020-07-141-4/+3
| | | | | | | | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | | | removing alignment align as mailing list suggestions are general guidelinesPaul2020-07-141-1/+0
| | | | | | | | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | | | DOC: clarify whats required for new features see #13924leeyspaul2020-07-132-0/+8
| | |_|/ / | |/| | |
* | | | | Merge pull request #16882 from imba-tjd/patch-1Matti Picus2020-07-161-1/+0
|\ \ \ \ \ | | | | | | | | | | | | BLD: Remove unused pip install
| * | | | | Remove unused pip install谭九鼎2020-07-161-1/+0
|/ / / / /
* | | | | Merge pull request #16878 from davidedalbosco/patch-1Melissa Weber Mendonça2020-07-151-5/+6
|\ \ \ \ \ | | | | | | | | | | | | DOC: edit to the documentation of lib/polynomial.py/polyfit
| * | | | | Update to polynomial.pydavidedalbosco2020-07-151-5/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | Edited the documentation of polyfit. The scaling factor of the covariance matrix in the description was erroneous, the correct form is chi2/dof. The code already used this correct scaling, just the description needed to be updated.
* | | | | Merge pull request #16871 from r-devulap/work-around-for-gcc-4.9-bugMatti Picus2020-07-151-1/+5
|\ \ \ \ \ | | | | | | | | | | | | BUG: Update compiler check for AVX-512F
| * | | | | BUG: Update compiler check for AVX-512FRaghuveer Devulapalli2020-07-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc-4.9 is missing a few AVX-512F intrisics, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61878. We use some of these missing intrinsics to check for compiler support of AVX-512F.
* | | | | | Merge pull request #16870 from mattip/pin-setuptoolsCharles Harris2020-07-1510-19/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | BLD, MAINT: Pin setuptools
| * | | | | | MAINT,BLD: add setuptools install to the gcc4.8 runmattip2020-07-151-1/+2
| | | | | | |
| * | | | | | MAINT,BLD: pin setuptools and refactor where to find itmattip2020-07-147-9/+11
| | | | | | |
| * | | | | | Revert "MAINT: setuptools 49.2.0 emits a warning, avoid it"mattip2020-07-143-10/+1
| |/ / / / /
* | | | | | Merge pull request #16874 from takanori-pskq/fixup-1Sebastian Berg2020-07-151-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | TST, MAINT: fix the test for ``np.ones``
| * | | | | | Fixup: numpy/core/tests/test_numeric.pytakanori-pskq2020-07-151-1/+1
| | | | | | |