summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | STY: Fix up indentation.Charles Harris2018-11-131-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | | | | DOC: changing the example in the docstring for the function 'compare_chararrays'Elena Mokeeva2018-11-071-3/+3
| | | | | | | |
| * | | | | | | DOC: add a docstring for the function 'compare_chararrays'Elena Mokeeva2018-11-051-0/+41
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Merge pull request #12377 from mattip/finish-nep-15Charles Harris2018-11-131-1/+1
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | NEP: move nep 15 from accepted to final
| * | | | | | NEP: move nep 15 from accepted to finalmattip2018-11-131-1/+1
|/ / / / / /
* | | | | | Merge pull request #12342 from bmakos/fix#10532Charles Harris2018-11-132-7/+46
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix for np.dtype(ctypes.Structure) does not respect _pack_ field
| * | | | | | STY: Minor style fixups.Charles Harris2018-11-131-3/+2
| | | | | | |
| * | | | | | STY: Minor style fixups.Charles Harris2018-11-131-3/+1
| | | | | | |
| * | | | | | BUG: Fix for np.dtype(ctypes.Structure) does not respect _pack_ fieldMircea Akos Bruma2018-11-092-31/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See #10532 Cosmetic changes + added an additional test with a more complex structure.
| * | | | | | BUG: Fix for np.dtype(ctypes.Structure) does not respect _pack_ fieldMircea Akos Bruma2018-11-082-19/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See #10532 Made several changes to offset and size calulation. First pull request was far from correct.
| * | | | | | BUG: Fix for np.dtype(ctypes.Structure) does not respect _pack_ fieldMircea Akos Bruma2018-11-061-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See #10532
* | | | | | | Merge pull request #12373 from eric-wieser/pep3118-better-errorsCharles Harris2018-11-132-2/+16
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | MAINT: Improve error message for legal but unsupported PEP3118 types
| * | | | | | MAINT: Improve error message for legal but unsupported PEP3118 typesEric Wieser2018-11-132-2/+16
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relates to #12369 Traceback is now: ``` In [1]: from array import array ...: import numpy as np ...: ...: buf = array('u', ['q', 'w', 'e', 'r', 't']) ...: view = memoryview(buf) ...: In [2]: np.array(view) NotImplementedError: Unsupported PEP 3118 data type 'u' (UCS-2 strings) The above exception was the direct cause of the following exception: ValueError: 'u' is not a valid PEP 3118 buffer format string ```
* | | | | | Merge pull request #12241 from tylerjereddy/histogramdd_test_arg_branchCharles Harris2018-11-121-0/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | TST: arg handling tests in histogramdd
| * | | | | | TST: arg handling tests in histogramddTyler Reddy2018-10-221-0/+17
| | | | | | |
* | | | | | | Merge pull request #12372 from WarrenWeckesser/bug-weibull0Charles Harris2018-11-123-2/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: random: Fix handling of a=0 for numpy.random.weibull.
| * | | | | | | DOC: random: Make the constraint on the parameter `a` of weibull more precise.Warren Weckesser2018-11-121-1/+1
| | | | | | | |
| * | | | | | | BUG: random: Fix handling of a=0 for numpy.random.weibull.Warren Weckesser2018-11-122-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this fix, np.random.weibull(a=0) often returned inf (and in theory could have returned 1). It should only return 0. Closes gh-12371.
* | | | | | | | Merge pull request #12362 from shoyer/disable-array-function-by-defaultCharles Harris2018-11-129-16/+107
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | MAINT: disable `__array_function__` dispatch unless environment variable set
| * | | | | | | DOC: add docstring for override_moduleStephan Hoyer2018-11-111-1/+10
| | | | | | | |
| * | | | | | | DOC: add a full docstring for array_function_dispatchStephan Hoyer2018-11-111-1/+26
| | | | | | | |
| * | | | | | | MAINT: more fixes for disabling overridesStephan Hoyer2018-11-106-21/+47
| | | | | | | |
| * | | | | | | MAINT: fix disabling __array_function__Stephan Hoyer2018-11-101-1/+1
| | | | | | | |
| * | | | | | | MAINT: disable __array_function__ dispatch unless environment variable setStephan Hoyer2018-11-105-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per discussion on the mailing list, __array_function__ isn't quite ready to release as part of NumPy 1.16: https://mail.python.org/pipermail/numpy-discussion/2018-November/078949.html We'd like to improve performance a bit, and it will be easier to support introspection on NumPy functions if we support Python 3 only. So for now, you need to set the environment variable ``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` to enable dispatching.
* | | | | | | | Merge pull request #8955 from eric-wieser/obj-identityMatti Picus2018-11-127-20/+127
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | ENH: Allow ufunc.identity to be any python object
| * | | | | | | DOC: Add release notes on changes to ufunc.identityEric Wieser2018-11-121-0/+19
| | | | | | | |
| * | | | | | | ENH: Correct identities for logical ufuncs and logaddexpEric Wieser2018-11-122-16/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #7702
| * | | | | | | ENH: Allow ufunc.identity to be any python objectEric Wieser2018-11-125-4/+65
| | |_|/ / / / | |/| | | | |
* | | | | | | Merge pull request #12312 from tylerjereddy/unreachable_pythonCharles Harris2018-11-112-5/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | MAINT, TST: unreachable Python code paths
| * | | | | | | MAINT, TST: check for unreachable code pathsTyler Reddy2018-11-022-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use vulture to check for unreachable Python code paths in Azure CI * fix up an unreachable path in f2py/capi_maps.py
* | | | | | | | Merge pull request #12366 from liwt31/timsortCharles Harris2018-11-113-209/+89
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Refactor sorting header file
| * | | | | | | | refactor sort head filewtli2018-11-113-209/+89
| | | | | | | | |
* | | | | | | | | Merge pull request #12363 from rgommers/aix-rpathCharles Harris2018-11-111-0/+4
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: update gfortran RPATH for AIX/Windows non-support.
| * | | | | | | | | MAINT: update gfortran RPATH for AIX/Windows non-support.Ralf Gommers2018-11-101-0/+4
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Closes https://github.com/scipy/scipy/issues/9452
* | | | | | | | | Merge pull request #12364 from shoyer/nep-18-clarify-typesStephan Hoyer2018-11-101-2/+3
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | NEP: clarify the purpose of "types" in `__array_function__`.
| * | | | | | | | NEP: clarify the purpose of "types" in __array_function__Stephan Hoyer2018-11-101-2/+3
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per our discussion on the mailing list: https://mail.python.org/pipermail/numpy-discussion/2018-November/078911.html
* | | | | | | | Merge pull request #12354 from simongibbons/fix-fromfile-error-handlingEric Wieser2018-11-103-1/+53
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | BUG: Fix segfault when an error occurs in np.fromfile
| * | | | | | | BUG: Fix segfault when an error occurs in np.fromfileSimon Gibbons2018-11-103-1/+53
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a problem with the way in which we handle errors which occur in the call to `PyArray_FromFile` in `np.fromfile`. The problem here is twofold. 1. The return value isn't checked, therefore if we reach the fail block, we will attempt a DECREF on a NULL and go down in flames. 2. The cleanup code on the filepointers (most notabily the call to `npy_PyFile_DupClose2`) assumes that there is no error set to work. This PR addresses these issues 1. By adding a NULL check to the fail block to ensure we don't attempt a DECREF on a NULL. 2. By saving the error state before attempting the cleanup code on the file descriptor, and then restoring it after. Fixes: #12300
* | | | | | | Merge pull request #11916 from mattip/deprecate-set_numeric_opsCharles Harris2018-11-0913-28/+96
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DEP: deprecate np.set_numeric_ops and friends
| * | | | | | | DOC: reword from reviewmattip2018-11-091-2/+3
| | | | | | | |
| * | | | | | | DEP: deprecate np.set_numeric_ops and friendsmattip2018-10-2113-28/+95
| | | | | | | |
* | | | | | | | Merge pull request #12349 from tylerjereddy/circleci_doc_artifactsCharles Harris2018-11-091-3/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | TST, DOC: store circleci doc artifacts
| * | | | | | | | TST: store circleci devdocs artifactTyler Reddy2018-11-071-3/+2
| | | | | | | | |
* | | | | | | | | Merge pull request #12357 from charris/cleanup-pavementRalf Gommers2018-11-092-502/+108
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: Cleanup pavement file
| * | | | | | | | | DOC: Update RELEASE_WALKTHROUGH.rst.txt.Charles Harris2018-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `write_release_and_log` task has been removed from the pavement file. Update the release walkthrough to use `write_release` instead. [ci skip]
| * | | | | | | | | MAINT: Cleanup pavement.pyCharles Harris2018-11-091-501/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove long unused options from pavement.py. There is actually little left, and what is there could easily be turned into a python script at this point, but this clarifies what is currently needed. - Remove Windows installers code - Remove OS X dmg installers code - Remove Documentation generation code - Remove Changelog generation - Remove unused variables and make pylint happy Also fix a Python 3 bug, the files to be hashed need to be opened as binary files. [ci skip]
* | | | | | | | | | Merge pull request #12331 from shoyer/benchmark-py-versionCharles Harris2018-11-091-1/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | DEV: change ASV benchmarks to run on Python 3.6 by default
| * | | | | | | | | Update benchmarks/asv.conf.jsonCharles Harris2018-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: shoyer <shoyer@gmail.com>
| * | | | | | | | | DEV: change ASV benchmarks to run on Python 3.7 by defaultStephan Hoyer2018-11-041-1/+1
| | | | | | | | | |
* | | | | | | | | | Merge pull request #12355 from hmaarrfk/tiny_bug_from_fileEric Wieser2018-11-081-0/+1
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | BUG: fix a bug in npy_PyFile_Dup2 where it didn't return immediately on failure