Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #11961 from eric-wieser/pad-tests | Charles Harris | 2018-09-18 | 1 | -1/+42 |
|\ | | | | | TST: Add more tests for np.pad | ||||
| * | TST: Add a (failing) test for using np.pad with Fractions, which currently ↵ | Eric Wieser | 2018-09-17 | 1 | -0/+19 |
| | | | | | | | | rounds to `float` | ||||
| * | TST: Add a regression test for gh-11216 | Lars G | 2018-09-17 | 1 | -1/+18 |
| | | | | | | | | The test is marked xfail right now as it is not fixed in master | ||||
| * | TST: Add a test for pad-wrapping by length 0 | Lars G | 2018-09-15 | 1 | -0/+5 |
| | | |||||
* | | Merge pull request #11958 from hmaarrfk/test_pad_object | Matti Picus | 2018-09-17 | 1 | -0/+15 |
|\ \ | | | | | | | TST: Add a test for np.pad where constant_values is an object | ||||
| * | | style | Mark Harfouche | 2018-09-15 | 1 | -1/+1 |
| | | | |||||
| * | | Pad start and end with different values | Mark Harfouche | 2018-09-15 | 1 | -3/+5 |
| | | | |||||
| * | | Don't use None to valid the array as it is the "Default" for empty | Mark Harfouche | 2018-09-15 | 1 | -5/+8 |
| | | | |||||
| * | | MAINT: Add a test for np.pad where constant_values is an object | Mark Harfouche | 2018-09-15 | 1 | -0/+10 |
| |/ | |||||
* | | MAINT: refactor design of recursive closures (#11910) | Matti Picus | 2018-09-16 | 1 | -0/+6 |
|/ | |||||
* | TST: Replace calls to unittest.TestCase.fail (#11933) | Roman Yurchak | 2018-09-12 | 3 | -18/+8 |
| | | | | | | | | After the pytest migration, test classes no longer inherit from unittest.TestCase and and the fail method does not exist anymore. In all these cases, we can use assert_raises and assert_raises_regex instead | ||||
* | TST: Fix duplicated test name. | Elliott Sales de Andrade | 2018-09-06 | 1 | -2/+2 |
| | | | | | It's a straightforward copy&paste error, but it means not all these tests get run. | ||||
* | BUG: add type cast check to ediff1d | Tyler Reddy | 2018-08-26 | 1 | -1/+66 |
| | |||||
* | BUG: fix array_split incorrect behavior with array size bigger MAX_INT32 ↵ | Nikita Titov | 2018-08-26 | 1 | -0/+14 |
| | | | | | | | | | | | | (#11813) Fixes #11809. * BUG: fix array_split incorrect behavior with array size bigger MAX_INT32 * TST: added test for array_split with array size greater MAX_INT32 * addressed review comments | ||||
* | Merge pull request #11573 from tylerjereddy/broadcast_arrays_kw_test | Matti Picus | 2018-08-21 | 1 | -1/+13 |
|\ | | | | | TST: add broadcast_arrays() kwarg unit test for TypeError | ||||
| * | MAINT: Use raw strings for regexes | Eric Wieser | 2018-08-20 | 1 | -1/+1 |
| | | |||||
| * | TST: add broadcast_arrays() kwarg unit test for TypeError | Tyler Reddy | 2018-08-01 | 1 | -1/+13 |
| | | | | | | | | | | | | | | | | | | * broadcast_arrays() is now tested for the case when an invalid keyword argument is used; the appropriate error string content is also tested for * the TypeError message produced in the above case has been restored to the correct value in Python 3 | ||||
* | | MAINT: reformat line spacing before test methods | mattip | 2018-08-19 | 2 | -3/+0 |
| | | |||||
* | | Merge pull request #11778 from eric-wieser/histogram-overflow | Charles Harris | 2018-08-18 | 1 | -0/+14 |
|\ \ | | | | | | | BUG: Avoid signed overflow in histogram | ||||
| * | | BUG: Avoid signed overflow in histogram | Eric Wieser | 2018-08-18 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When dividing the range between first and last, the formula `(x - first) / (last - first)` is used, where `last >= first` This falls apart if the types of these variables are signed integers, in which case overflow can occur. The solution is to force the subtraction result to be unsigned. This is a regression in 1.15.0 | ||||
* | | | Merge pull request #11774 from charris/fix-intersect1d | Charles Harris | 2018-08-17 | 1 | -7/+18 |
|\ \ \ | | | | | | | | | BUG: Fix regression in intersect1d. | ||||
| * | | | BUG: Fix regression in intersect1d. | Charles Harris | 2018-08-17 | 1 | -7/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function was failing for non-ndarray objects that defined that defined __array__, in particular `xarray.DataArray`. Fix by calling asanyarray on the inputs, which was done implicitly before. Closes #11772. | ||||
* | | | | Merge pull request #11715 from QuLogic/no-network | Charles Harris | 2018-08-17 | 1 | -2/+2 |
|\ \ \ \ | |/ / / |/| | | | TST: Fix urlopen stubbing. | ||||
| * | | | TST: Fix urlopen stubbing. | Elliott Sales de Andrade | 2018-08-15 | 1 | -2/+2 |
| | |/ | |/| | | | | | | | | | | setup/teardown doesn't work, but setup_module/teardown_module does, at least in pytest. | ||||
* | | | BUG: Fix regression in loadtxt for bz2 text files in Python 2. | Charles Harris | 2018-08-10 | 1 | -1/+22 |
|/ / | | | | | | | | | | | | | | | | | | | | | Text bz2 files are not well supported in Python2, and, following the NumPy upgrade in text handling, loadtxt was raising an error when they were detected. This led to problems for those few who were using such files. This patch is a quick fix that issues a RuntimeWarning, then opens those files under the assumption that they are latin1 encoded. Caveat emptor. Closes #11633. | ||||
* | | Merge pull request #11503 from jor-/master | Matti Picus | 2018-08-01 | 1 | -2/+10 |
|\ \ | | | | | | | MAINT: improve error message for isposinf and isneginf on complex values | ||||
| * | | API: isposinf and isneginf now raise TypeError instead of ValueError for ↵ | Joscha Reimer | 2018-07-30 | 1 | -2/+2 |
| | | | | | | | | | | | | complex values | ||||
| * | | TEST: numpy.lib.ufunclike: isposinf and isneginf are tested with complex ↵ | Joscha Reimer | 2018-07-27 | 1 | -2/+10 |
| | | | | | | | | | | | | values whether exception is raised | ||||
| * | | Revert "TEST: isposinf and isneginf is now also tested with complex values" | Joscha Reimer | 2018-07-26 | 1 | -19/+17 |
| | | | | | | | | | | | | This reverts commit cd8ffcf11f7d31e383d81112c4bb342ac0269fc8. | ||||
| * | | TEST: isposinf and isneginf is now also tested with complex values | Joscha Reimer | 2018-07-05 | 1 | -17/+19 |
| | | | |||||
* | | | Merge pull request #11638 from eric-wieser/remove-ma.expand_dims | Ralf Gommers | 2018-07-31 | 1 | -0/+9 |
|\ \ \ | | | | | | | | | ENH: Make expand_dims work on subclasses | ||||
| * | | | TST: Add tests for expand_dims | Eric Wieser | 2018-07-30 | 1 | -0/+9 |
| | | | | |||||
* | | | | Merge pull request #11637 from eric-wieser/simplify-angle | Charles Harris | 2018-07-31 | 1 | -0/+10 |
|\ \ \ \ | | | | | | | | | | | ENH: np.angle: Remove unnecessary multiplication, and allow subclasses to pass through | ||||
| * | | | | ENH: np.angle: Preserve subclasses | Eric Wieser | 2018-07-30 | 1 | -0/+10 |
| |/ / / | |||||
* | | | | Merge pull request #11522 from jzwinck/fix-load-empty-npz | Julian Taylor | 2018-07-29 | 1 | -0/+7 |
|\ \ \ \ | | | | | | | | | | | BUG: fix np.load() of empty .npz file | ||||
| * | | | | BUG: fix np.load() of empty .npz file | John Zwinck | 2018-07-07 | 1 | -0/+7 |
| | |/ / | |/| | | | | | | | | | | Fixes #9989 | ||||
* | | | | Merge pull request #9022 from eric-wieser/reduce-hides-error | Marten van Kerkwijk | 2018-07-27 | 1 | -1/+2 |
|\ \ \ \ | |_|/ / |/| | | | BUG: don't silence __array_wrap__ errors in ufunc.reduce | ||||
| * | | | BUG/MAINT: Handle errors in __array_wrap__ the same way in ufunc.reduce as ↵ | Eric Wieser | 2018-06-12 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | in ufunc.__call__ Previously they were silenced | ||||
* | | | | MAINT: Convert the doctest in `numpy/lib/tests/test_polynomial.py` to ↵ | Krzysztof Chomski | 2018-07-14 | 1 | -82/+68 |
| | | | | | | | | | | | | | | | | regular tests. (#GH9416). | ||||
* | | | | Merge pull request #11084 from mattip/test-documentation | Ralf Gommers | 2018-07-13 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | DOC: link to TESTS.rst.txt testing guidelines document, tweaks | ||||
| * | | | | DOC: link to TESTS.rst.txt testing guidelines document, tweak testing docs | mattip | 2018-06-25 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Merge pull request #11464 from eric-wieser/monotonicity | Charles Harris | 2018-07-08 | 1 | -0/+12 |
|\ \ \ \ \ | | | | | | | | | | | | | BUG: Don't convert inputs to `np.float64` in digitize | ||||
| * | | | | | BUG: Don't convert inputs to `np.float64` in digitize | Eric Wieser | 2018-07-06 | 1 | -0/+12 |
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts digitize to a pure-python function that falls back on searchsorted. Performance doesn't really matter here anyway - if you care about performance, then you should just call searchsorted directly, rather than checking the order of the bins. Partially fixes gh-11022 | ||||
* | | | | | Merge pull request #11531 from eric-wieser/histogramdd-density-no-deprecation | Charles Harris | 2018-07-08 | 2 | -11/+11 |
|\ \ \ \ \ | |/ / / / |/| | | | | ENH: Add density argument to histogramdd. | ||||
| * | | | | MAINT: Rename histogramdd's normed argument to density, to match histogram | Eric Wieser | 2018-07-08 | 2 | -11/+11 |
| | | | | | | | | | | | | | | | | | | | | Fixes gh-4371 | ||||
* | | | | | Merge pull request #11396 from pimdh/master | Eric Wieser | 2018-06-29 | 1 | -0/+15 |
|\ \ \ \ \ | | | | | | | | | | | | | TST: Added regression test for #11395 | ||||
| * | | | | | TST: Added regression test for #11395 | Pim de Haan | 2018-06-21 | 1 | -0/+15 |
| | |/ / / | |/| | | | |||||
* | | | | | BUG: fix interpolation with inf and NaN present | Jack Vreeken | 2018-06-29 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Values like NaN and inf would result in wrong interpolated values on exactly matching sampling points. To produce the correct behavior, we add an additional check to avoid interpolation when handling such a point. Closes #11439 | ||||
* | | | | | Merge pull request #11428 from eric-wieser/deprecate-normed-1.15.0 | Charles Harris | 2018-06-27 | 1 | -0/+4 |
|\ \ \ \ \ | |/ / / / |/| | | | | BUG: Fix incorrect deprecation logic for histogram(normed=...) (master) | ||||
| * | | | | BUG: Fix incorrect deprecation logic for histogram(normed=...) | Eric Wieser | 2018-06-26 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | Fixes #11426, which was introduced in #11323 and #11352 |