summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12116 from shoyer/array-function-numpy-libCharles Harris2018-10-117-0/+379
|\ | | | | ENH: __array_function__ support for np.lib, part 1/2
| * ENH: __array_function__ for np.lib, part 1Stephan Hoyer2018-10-087-0/+379
| | | | | | | | np.lib.arraypad through np.lib.nanfunctions
* | Merge pull request #12137 from tylerjereddy/fill_diag_err_testEric Wieser2018-10-111-0/+13
|\ \ | | | | | | TST: error tests for fill_diagonal()
| * | TST: error tests for fill_diagonal()Tyler Reddy2018-10-101-0/+13
| | | | | | | | | | | | | | | * add error handling tests for previously uncovered code in fill_diagonal()
* | | TST: error tests for diag_indices_from()Tyler Reddy2018-10-101-5/+17
|/ / | | | | | | | | * add unit tests for previously uncovered error handling code in diag_indices_from()
* | Merge pull request #12108 from AetherUnbound/bugfix/12107Matti Picus2018-10-102-0/+25
|\ \ | | | | | | BUG: Allow boolean subtract in histogram
| * | BUG: Allow boolean subtract in histogramMatthew Bowden2018-10-102-0/+25
| |/ | | | | | | | | | | | | | | | | | | | | Convert bool to uint at start, rather than attempt a XOR Only check type against np.bool_ Refactor warnings check
* | Merge pull request #12133 from pierreglaser/centralize-pickle-importCharles Harris2018-10-102-6/+2
|\ \ | | | | | | MAINT, TST refactor pickle imports and tests
| * | MAINT, TST import pickle from numpy.core.numericPierre Glaser2018-10-102-6/+2
| |/ | | | | | | | | | | | | | | All imports of pickle from numpy modules are now done this way: >>> from numpy.core.numeric import pickle Also, some loops on protocol numbers are added over pickle tests that were not caught from #12090
* | MAINT: Update deprecation message.Charles Harris2018-10-101-1/+1
| |
* | DEP: deprecate asscalarmattip2018-10-101-0/+9
|/
* TST: improve coverage of nd_gridTyler Reddy2018-10-061-0/+18
|
* Merge pull request #12061 from ceh-forks/remove-reduntant-importsCharles Harris2018-09-301-1/+0
|\ | | | | MAINT: remove redundant imports
| * MAINT: remove redundant importsEmil Hessman2018-09-301-1/+0
| |
* | MAINT: remove unused stdlib importsEmil Hessman2018-09-301-1/+0
|/
* Merge pull request #11962 from mfkasim91/limitrowloadtxtCharles Harris2018-09-302-2/+58
|\ | | | | ENH: maximum lines of content to be read from numpy.loadtxt
| * MAINT: Omit None in max_rows for np.loadtxt docstringmfkasim912018-09-301-1/+1
| |
| * MAINT: No tick for None in `max_rows` docstring for `np.loadtxt`mfkasim912018-09-301-1/+1
| |
| * ENH: add max_rows kwarg to numpy.loadtxt like numpy.genfromtxtmfkasim912018-09-302-2/+58
| |
* | MAINT: remove unused importsEmil Hessman2018-09-291-8/+6
| |
* | ENH add prepend and append kwargs to diffMatt Harrigan2018-09-252-1/+81
| |
* | BUG: Don't leave files open and dangling if np.load has a bad encoding ↵Eric Wieser2018-09-231-13/+14
| | | | | | | | argument, or the file is an invalid zip
* | TST: prefer pytest.skip() over SkipTestTyler Reddy2018-09-213-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | * replace most usage of SkipTest() with pytest.skip() * where possible, we avoid use of the standard library SkipTest because unittest skipping is routed through the pytest nose compatibility layer in that scenario, which can prevent an easy trace back to the test line where the skip occurred
* | Merge pull request #11961 from eric-wieser/pad-testsCharles Harris2018-09-181-1/+42
|\ \ | | | | | | TST: Add more tests for np.pad
| * | TST: Add a (failing) test for using np.pad with Fractions, which currently ↵Eric Wieser2018-09-171-0/+19
| | | | | | | | | | | | rounds to `float`
| * | TST: Add a regression test for gh-11216Lars G2018-09-171-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 0Lars G2018-09-151-0/+5
| |/
* | Merge pull request #11958 from hmaarrfk/test_pad_objectMatti Picus2018-09-171-0/+15
|\ \ | | | | | | TST: Add a test for np.pad where constant_values is an object
| * | styleMark Harfouche2018-09-151-1/+1
| | |
| * | Pad start and end with different valuesMark Harfouche2018-09-151-3/+5
| | |
| * | Don't use None to valid the array as it is the "Default" for emptyMark Harfouche2018-09-151-5/+8
| | |
| * | MAINT: Add a test for np.pad where constant_values is an objectMark Harfouche2018-09-151-0/+10
| |/
* | MAINT: refactor design of recursive closures (#11910)Matti Picus2018-09-162-9/+13
|/
* TST: Replace calls to unittest.TestCase.fail (#11933)Roman Yurchak2018-09-123-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 Andrade2018-09-061-2/+2
| | | | | It's a straightforward copy&paste error, but it means not all these tests get run.
* Merge pull request #11805 from tylerjereddy/issue_11490Charles Harris2018-08-312-3/+83
|\ | | | | BUG: add type cast check for ediff1d
| * BUG: add type cast check to ediff1dTyler Reddy2018-08-262-3/+83
| |
* | Merge pull request #10915 from mattip/implement-nep-0015Charles Harris2018-08-311-1/+1
|\ \ | |/ |/| ENH: implement nep 0015: merge multiarray and umath
| * MAINT: merge umath, multiarray into _multiarray, add python wrappersmattip2018-08-211-1/+1
| |
* | BUG: fix array_split incorrect behavior with array size bigger MAX_INT32 ↵Nikita Titov2018-08-262-2/+16
|/ | | | | | | | | | | | (#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_testMatti Picus2018-08-212-2/+14
|\ | | | | TST: add broadcast_arrays() kwarg unit test for TypeError
| * MAINT: Use raw strings for regexesEric Wieser2018-08-201-1/+1
| |
| * TST: add broadcast_arrays() kwarg unit test for TypeErrorTyler Reddy2018-08-012-2/+14
| | | | | | | | | | | | | | | | | | * 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 methodsmattip2018-08-192-3/+0
| |
* | Merge pull request #11778 from eric-wieser/histogram-overflowCharles Harris2018-08-182-3/+43
|\ \ | | | | | | BUG: Avoid signed overflow in histogram
| * | BUG: Avoid signed overflow in histogramEric Wieser2018-08-182-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-intersect1dCharles Harris2018-08-172-17/+32
|\ \ \ | | | | | | | | BUG: Fix regression in intersect1d.
| * | | BUG: Fix regression in intersect1d.Charles Harris2018-08-172-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-networkCharles Harris2018-08-171-2/+2
|\ \ \ \ | | | | | | | | | | TST: Fix urlopen stubbing.
| * | | | TST: Fix urlopen stubbing.Elliott Sales de Andrade2018-08-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | setup/teardown doesn't work, but setup_module/teardown_module does, at least in pytest.