Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ENH: add "max difference" messages to np.testing.assert_array_equal (#12591) | Stephan Hoyer | 2019-01-01 | 3 | -135/+185 |
| | | | | | | | | | | | | | | | | | | | | | | Example behavior: >>> x = np.array([1, 2, 3]) >>> y = np.array([1, 2, 3.0001]) >>> np.testing.assert_allclose(x, y) AssertionError: Not equal to tolerance rtol=1e-07, atol=0 Mismatch: 33.3% Max absolute difference: 0.0001 Max relative difference: 3.33322223e-05 x: array([1, 2, 3]) y: array([1. , 2. , 3.0001]) Motivation: when writing numerical algorithms, I frequently find myself experimenting to pick the right value of `atol` and `rtol` for `np.testing.assert_allclose()`. If I make the tolerance too generous, I risk missing regressions in accuracy, so I usually try to pick the smallest values for which tests pass. This change immediately reveals appropriate values to use for these parameters, so I don't need to guess and check. | ||||
* | Merge pull request #12308 from tylerjereddy/timedelta64_floordiv | Matti Picus | 2019-01-01 | 5 | -3/+118 |
|\ | | | | | ENH: add mm->q floordiv | ||||
| * | ENH: add mm->q floordiv | Tyler Reddy | 2018-12-07 | 5 | -3/+118 |
| | | | | | | | | | | | | | | * add support for floor division between timedelta64 (m8) operands with generic or specific units; type signature is mm->q | ||||
* | | Merge pull request #12551 from rgommers/append-warn | Matti Picus | 2018-12-31 | 2 | -4/+52 |
|\ \ | | | | | | | MAINT: add warning to numpy.distutils for LDFLAGS append behavior. | ||||
| * | | TST: suppress test warnings for appending flag behavior better. | Ralf Gommers | 2018-12-27 | 1 | -3/+8 |
| | | | |||||
| * | | MAINT: add warning to numpy.distutils for LDFLAGS append behavior. | Ralf Gommers | 2018-12-27 | 2 | -4/+47 |
| | | | | | | | | | | | | See gh-7427 | ||||
* | | | Merge pull request #12618 from ahaldane/test_12byte_alignment | Charles Harris | 2018-12-27 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | MAINT: add test for 12-byte alignment | ||||
| * | | | MAINT: add test for 12-byte alignment | Allan Haldane | 2018-12-26 | 1 | -2/+2 |
| | | | | |||||
* | | | | Merge pull request #12601 from abdurrehman11/numpy-delete-docs | Allan Haldane | 2018-12-27 | 1 | -1/+1 |
|\ \ \ \ | |_|/ / |/| | | | DOC: Correct documentation of `numpy.delete` obj parameter. | ||||
| * | | | Refactored numpy.delete function docs | Abdur Rehman | 2018-12-21 | 1 | -1/+1 |
| | | | | |||||
* | | | | BUG: Add missing free in ufunc dealloc | Sebastian Berg | 2018-12-26 | 1 | -0/+2 |
| |/ / |/| | | |||||
* | | | Merge pull request #12611 from mattip/align-longdouble | Charles Harris | 2018-12-26 | 2 | -3/+9 |
|\ \ \ | | | | | | | | | BUG: longdouble with elsize 12 is never uint alignable | ||||
| * | | | MAINT: improve comments | mattip | 2018-12-26 | 2 | -3/+4 |
| | | | | |||||
| * | | | BUG: non-uint-aligned arrays were counted as uint-aligned | Allan Haldane | 2018-12-25 | 3 | -5/+7 |
| | | | | |||||
| * | | | BUG: add case for longdouble alignment size | mattip | 2018-12-25 | 1 | -0/+3 |
| | | | | |||||
* | | | | MAINT: Use `*.format` for some strings (#12608) | Abdur-Rahmaan Janhangeer | 2018-12-26 | 1 | -2/+2 |
| | | | | |||||
* | | | | replace fftpack with pocketfft | Martin Reinecke | 2018-12-25 | 11 | -2179/+2504 |
|/ / / | |||||
* | | | Merge pull request #12333 from tuelwer/master | Matti Picus | 2018-12-24 | 1 | -8/+20 |
|\ \ \ | |/ / |/| | | DOC: update description of the Dirichlet distribution | ||||
| * | | Remove extra whitespace | Tobias Uelwer | 2018-12-14 | 1 | -1/+1 |
| | | | |||||
| * | | DOC: update description of the Dirichlet distribution | Tobias Uelwer | 2018-11-05 | 1 | -9/+21 |
| | | | |||||
* | | | Merge pull request #12317 from shoyer/array-function-c | Marten van Kerkwijk | 2018-12-20 | 15 | -145/+518 |
|\ \ \ | | | | | | | | | ENH: port np.core.overrides to C for speed | ||||
| * | | | ENH: port __array_function__ overrides to C | Stephan Hoyer | 2018-12-19 | 12 | -112/+455 |
| | | | | |||||
| * | | | ENH: refactor __array_function__ pure Python implementation | Stephan Hoyer | 2018-12-19 | 6 | -83/+113 |
| | | | | |||||
* | | | | Merge pull request #12592 from eric-wieser/dont-reinvent-subprocess | Matti Picus | 2018-12-19 | 1 | -71/+16 |
|\ \ \ \ | | | | | | | | | | | BUG,TST: Remove the misguided `run_command` that wraps subprocess in … | ||||
| * | | | | BUG,TST: Remove the misguided `run_command` that wraps subprocess in a ↵ | Eric Wieser | 2018-12-18 | 1 | -71/+16 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | broken way Also switches to using a parametrized test, for better error messages | ||||
* | | | | Merge pull request #12575 from danielhrisca/master | Matti Picus | 2018-12-19 | 1 | -6/+18 |
|\ \ \ \ | |/ / / |/| | | | ENH: improve performance for numpy.core.records.find_duplicate | ||||
| * | | | Rename OrderedCounter to _OrderedCounter | Eric Wieser | 2018-12-18 | 1 | -2/+3 |
| | | | | | | | | | | | | Let's not add to the namespace | ||||
| * | | | use OrderedCounter recipe from Python documentation | danielhrisca | 2018-12-18 | 1 | -9/+17 |
| | | | | |||||
| * | | | ENH: improve performance for core/records/find_duplicate | danielhrisca | 2018-12-17 | 1 | -6/+9 |
| | | | | |||||
* | | | | Merge pull request #12583 from mattip/test-f2py-command | Charles Harris | 2018-12-18 | 1 | -0/+5 |
|\ \ \ \ | | | | | | | | | | | TST: add test for 'python -mnumpy.f2py' | ||||
| * | | | | DEV: add test for 'python -mnumpy.f2py' | mattip | 2018-12-18 | 1 | -0/+5 |
| | | | | | |||||
* | | | | | Clarify skiprows in loadtxt | Ilja | 2018-12-18 | 1 | -1/+1 |
|/ / / / | |||||
* | | | | Merge pull request #12577 from juliantaylor/fix-f2py | Charles Harris | 2018-12-17 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | BUG: fix f2py pep338 execution method | ||||
| * | | | | BUG: fix f2py pep338 execution method | Julian Taylor | 2018-12-17 | 1 | -1/+1 |
| | |_|/ | |/| | | | | | | | | | | Closes gh-12576 | ||||
* | | | | Merge pull request #12560 from mattip/matmul-doctests | Charles Harris | 2018-12-17 | 1 | -11/+11 |
|\ \ \ \ | | | | | | | | | | | DOC: fix some doctest failures | ||||
| * | | | | DOC: fix some doctest failures | mattip | 2018-12-16 | 1 | -11/+11 |
| | | | | | |||||
* | | | | | Merge pull request #12566 from asottile/segfault_ctypeslib | Charles Harris | 2018-12-17 | 2 | -1/+14 |
|\ \ \ \ \ | | | | | | | | | | | | | BUG: fix segfault in ctypeslib with obj being collected | ||||
| * | | | | | BUG: fix segfault in ctypeslib with obj being collected | Anthony Sottile | 2018-12-16 | 2 | -1/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - https://bugs.python.org/issue35507 - https://stackoverflow.com/q/53757856/812183 | ||||
* | | | | | | Merge pull request #12572 from eric-wieser/fix-9647 | Charles Harris | 2018-12-17 | 5 | -26/+133 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array | ||||
| * \ \ \ \ \ | Merge commit '7ce7382d5eacbc3da026289483a841184a609928' into fix-9647 | Eric Wieser | 2018-12-16 | 182 | -4663/+7109 |
| |\ \ \ \ \ \ | |||||
| * | | | | | | | BUG: Fix regression in _missing_ctypes.cast that is not tested in CI | Eric Wieser | 2018-12-16 | 1 | -1/+1 |
| | | | | | | | | |||||
| * | | | | | | | BUG: Ensure that arr.ctypes works on arrays with overlapping fields | Eric Wieser | 2018-12-16 | 2 | -8/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These would previously fail in `from_buffer`, since these arrays cannot be used with the buffer protocol. | ||||
| * | | | | | | | BUG: Do not duplicate dtype objects when asked to keep the same dtype | Eric Wieser | 2018-12-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're setting newtype to oldtype, we already know that oldtype is attached to an array, so should be considered sized. | ||||
* | | | | | | | | Merge pull request #12546 from mattip/dtype-err-check | Sebastian Berg | 2018-12-17 | 1 | -0/+9 |
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | | BUG: check for errors after PyArray_DESCR_REPLACE | ||||
| * | | | | | | | BUG: check for errors after PyArray_DESCR_REPLACE | mattip | 2018-12-17 | 1 | -0/+9 |
| | | | | | | | | |||||
* | | | | | | | | Merge pull request #12544 from mattip/pypy-fixes2 | Charles Harris | 2018-12-16 | 4 | -7/+18 |
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | BUG: fix refcount issue caused by #12524 | ||||
| * | | | | | | | | BUG: be sure to set returned value to NULL | mattip | 2018-12-16 | 1 | -0/+1 |
| | | | | | | | | | |||||
| * | | | | | | | | MAINT: return Py_None not NULL | mattip | 2018-12-14 | 3 | -4/+7 |
| | | | | | | | | | |||||
| * | | | | | | | | BUG: fix from review | mattip | 2018-12-14 | 3 | -8/+3 |
| | | | | | | | | | |||||
| * | | | | | | | | BUG: fix refcount issue caused by #12524 | mattip | 2018-12-14 | 4 | -3/+15 |
| |/ / / / / / / |