summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | | | Merge pull request #11742 from mattip/doc-warningsCharles Harris2018-08-171-7/+9
|\ \ \ \ \ | |_|/ / / |/| | | | DOC: Reduce warnings and cleanup redundant c-api documentation
| * | | | DOC: reduce warnings and cleanup redundant c-api documentationmattip2018-08-141-7/+9
| |/ / /
* | | | Merge pull request #11745 from charris/fix-polyfit-docEric Wieser2018-08-151-2/+1
|\ \ \ \ | | | | | | | | | | DOC: Small docstring fixes for old polyfit.
| * | | | DOC: Small docstring fixes for old polyfit.Charles Harris2018-08-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove misleading reference to numpy/polynomial/polynomial/polyfit. * Add missing period in numpy/polynomial/_polybase.py
* | | | | Merge pull request #11708 from charris/fix-bz2-python2-loadtxtCharles Harris2018-08-152-4/+27
|\ \ \ \ \ | |/ / / / |/| | | | BUG: Fix regression in np.loadtxt for bz2 text files in Python 2.
| * | | | BUG: Fix regression in loadtxt for bz2 text files in Python 2.Charles Harris2018-08-102-4/+27
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | DOC: recommend polynomial.Polynomial over np.polyfit (#11733)Matti Picus2018-08-141-1/+6
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: reccomend polynomail.Polynomial over np.polyfit * update from review * update from review, fix links * fix from review
* | | DOC: fix typo in vectorize docstringMatthew Brett2018-08-131-2/+2
| | | | | | | | | | | | "an single" typo pointed out by keithbriggs - see gh-11730.
* | | Merge pull request #11436 from uds5501/document-average-return-typeMatti Picus2018-08-121-6/+19
|\ \ \ | |/ / |/| | DOC: Document average return type
| * | Update function_base.pyUddeshya Singh2018-08-121-4/+4
| | |
| * | Update function_base.pyUddeshya Singh2018-07-131-4/+5
| | | | | | | | | | | | * fixed grammatical mistakes * added a space before Example
| * | Update function_base.pyUddeshya Singh2018-07-091-5/+10
| | | | | | | | | | | | * further elaborated the return variable types * fixed the space error
| * | Fixing basic build errorsUddeshya Singh2018-07-011-2/+2
| | |
| * | DOC: update return type description for averageUddeshya Singh2018-06-281-6/+13
| | |
* | | Merge pull request #11503 from jor-/masterMatti Picus2018-08-012-7/+33
|\ \ \ | | | | | | | | MAINT: improve error message for isposinf and isneginf on complex values
| * | | ENH: isposinf and isneginf now also works for values which can not be ↵Joscha Reimer2018-07-301-6/+14
| | | | | | | | | | | | | | | | converted to arrays
| * | | API: isposinf and isneginf now raise TypeError instead of ValueError for ↵Joscha Reimer2018-07-302-6/+6
| | | | | | | | | | | | | | | | complex values
| * | | TEST: numpy.lib.ufunclike: isposinf and isneginf are tested with complex ↵Joscha Reimer2018-07-271-2/+10
| | | | | | | | | | | | | | | | values whether exception is raised
| * | | DOC: numpy.lib.ufunclike: typo fixedJoscha Reimer2018-07-271-2/+2
| | | |
| * | | BUG: isposinf and isneginf now raise an exception for complex valuesJoscha Reimer2018-07-261-3/+13
| | | |
| * | | Revert "BUG: isposinf and isneginf now also work with complex values"Joscha Reimer2018-07-261-17/+2
| | | | | | | | | | | | | | | | This reverts commit 4e2dd4140e2a7220ef645665a7ce6381493d273d.
| * | | Revert "TEST: isposinf and isneginf is now also tested with complex values"Joscha Reimer2018-07-261-19/+17
| | | | | | | | | | | | | | | | This reverts commit cd8ffcf11f7d31e383d81112c4bb342ac0269fc8.
| * | | TEST: isposinf and isneginf is now also tested with complex valuesJoscha Reimer2018-07-051-17/+19
| | | |