summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-026-33/+33
|
* TST: Use ComplexWarning suppression only where neededSebastian Berg2016-09-021-2/+6
|
* TST: Replace catch_warnings when recording is not enforced in test_nanfuncsSebastian Berg2016-09-021-10/+10
|
* TST: Use new warnings context manager in all testsSebastian Berg2016-09-022-35/+27
| | | | | | | | In some places, just remove aparently unnecessary filters. After this, all cases of ignore filters should be removed from the tests, making testing (even multiple runs) normally fully predictable.
* ENH: Remove warning ignoring from nanfuncsSebastian Berg2016-09-023-70/+66
| | | | | | Comment mentions a speedup, but it seems unsure why it should be there. Instead use an error state in divide_by_count. Some extra complex warnings had to be ignored (but those seemed correct)
* Merge pull request #7823 from madphysicist/ma-bugsJulian Taylor2016-08-271-3/+3
|\ | | | | BUG: Fixed masked array behavior for scalar inputs to np.ma.atleast_*d
| * BUG: Fixed masked array behavior for scalar inputs to np.ma.atleast_*dJoseph Fox-Rabinovitz2016-08-241-3/+3
| |
* | DOC: Fixed documented dimension of return value Joseph Fox-Rabinovitz2016-08-261-1/+1
|/ | | The first dimension of the return value depends on the degree of the polynomial, not the number of elements being used in the fit.
* Merge pull request #7936 from goerz/sparse-type-checkStephan Hoyer2016-08-172-2/+45
|\ | | | | ENH: improve duck typing inside iscomplexobj
| * ENH: improve duck typing inside iscomplexobjMichael Goerz2016-08-152-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both `iscomplexobj` and `isrealobj` now try to refer to the argument's `dtype` attribute if it exists. This significantly extends the list of types for which `iscomplexobj` returns correct results (including e.g. scipy sparse matrices and pandas objects). Extended the tests of the `iscomplexobj` routine for the following cases: * simple scalars * standard lists (test internal auto-conversion to numpy arrays) * "Duck typing" for objects that define a dtype attribute (either referring to one of the existing numpy dtypes, or a custom dtype, as pandas does) This fixes #7924
* | ENH: skip or avoid gc/objectmodel differences btwn pypy and cpythonmattip2016-08-152-2/+5
|/
* Spelling and grammar fix.Daniel Ching2016-08-041-2/+2
| | | Histogram documentation was missing an 'a' in the phrase 'all around performance'.
* DOC: fix typo in documentation of loadtxt (closes #7878)dunneff2016-07-281-1/+1
|
* DOC: Misplaced parens in formulaJoseph Fox-Rabinovitz2016-07-061-1/+1
|
* "lambda" is not allowed to use as keyword arguments because it is a reserved ↵Toshihiro Kamishima2016-07-041-2/+2
| | | | word.
* Merge pull request #7347 from erensezener/generalized_rot90Charles Harris2016-06-224-105/+170
|\ | | | | ENH Generalized rot90
| * MAINT: fix indentation and whitespaces of the flip functionEren Sezener2016-03-201-12/+7
| |
| * ENH: generalize rot90 with axes kwarg, move to function_base.py, and add testsDenis Alevi2016-03-204-93/+163
| |
* | TST: Test that polyfit raises if not enough data for cov estimate.Charles Harris2016-06-152-4/+10
| | | | | | | | Also a slight refactoring of np.polyfit.
* | BUG: Make sure we don't divide by zero in np.polyfit.David Schaich2016-06-151-0/+3
| | | | | | | | | | | | | | | | This should fix the issue discussed at https://mail.scipy.org/pipermail/numpy-discussion/2013-July/067076.html Without the ValueError added here, polyfit can (and does) return negative or nan variances with no warning.
* | Merge pull request #4073 from endolith/patch-2Charles Harris2016-06-152-7/+27
|\ \ | | | | | | BUG: change real output checking to test if all imaginary parts are zero
| * | TST: Set seed for deterministic random testEndolith2015-03-081-103/+6
| | | | | | | | | | | | also fixed some PEP8 issues
| * | Simpler checking of complex conjugatesendolith2015-02-171-6/+3
| | |
| * | TST: Fix missing imports, undeterministic testendolith2015-01-251-2/+101
| | | | | | | | | | | | Change to a deterministic test instead of using rand
| * | TST: Add tests for np.poly()endolith2015-01-251-0/+22
| | |
| * | BUG: sort after conjugating so that poly() outputs real type for exact ↵endolith2015-01-251-6/+5
| | | | | | | | | | | | conjugates
* | | MAINT: FutureWarning for changes to np.average subclass handlingAllan Haldane2016-06-141-1/+13
| | | | | | | | | | | | Fixes #7403
* | | DOC: fix typo in savetxt docstring (closes #7620)bertrand2016-06-101-1/+1
| | |
* | | STY: Misc whitespace cleanup.Erik M. Bray2016-05-311-4/+4
| | |
* | | BUG: Fixes to reading and writing of empty arrays, and in particular arrays ↵Erik M. Bray2016-05-312-12/+23
| | | | | | | | | | | | with empty dtypes. See #6430
* | | BUG: fix handling of right edge of final bin.Robert Kern2016-05-252-3/+8
| | |
* | | ENH: correct initial index estimate in histogram.Robert Kern2016-05-241-5/+16
| | |
* | | TST: Failing test for histogram.Robert Kern2016-05-241-0/+11
| | |
* | | TST: mark two tests in numpy.lib as slow, speeds up numpy.lib tests by 5xRalf Gommers2016-05-162-2/+3
| | |
* | | TST: fix test error due to use of deprecated np.testing.rand utility.Ralf Gommers2016-05-161-4/+4
| | |
* | | TST: fix test error when saving large array with savez.Ralf Gommers2016-05-161-2/+9
| | |
* | | TST: fix test errors for Pathlib usage tests in io.py.Ralf Gommers2016-05-151-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pathlib was only added to the stdlib in Python 3.4, and there it can handle string type input for a file with UTF8 encoding. But the Patlib version on PyPi that can be installed for Python 2.7 doesn't accept strings, gives errors like: ====================================================================== ERROR: test_ndfromtxt (test_io.TestPathUsage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/rgommers/Code/numpy/numpy/testing/decorators.py", line 147, in skipper_func return f(*args, **kwargs) File "/home/rgommers/Code/numpy/numpy/lib/tests/test_io.py", line 1888, in test_ndfromtxt f.write('1 2\n3 4') TypeError: must be unicode, not str
* | | ENH: linear interpolation of complex values in lib.interpPeter Creasey2016-05-122-14/+56
| | | | | | | | | | | | | | | | | | | | | lib.interp function now allows interpolation of complex fp with complex128 precision (i.e. equivalent to lib.interp on the real and imaginary parts). Tests are added for the non-periodic and periodic cases.
* | | DOC: Fix some incorrect RST definition listsEndolith2016-05-113-4/+4
| | |
* | | Merge pull request #7618 from ahaldane/gradient_docstringCharles Harris2016-05-112-5/+10
|\ \ \ | | | | | | | | BUG: distance arg of np.gradient must be scalar, fix docstring
| * | | BUG: distance arg of np.gradient must be scalar, fix docstringAllan Haldane2016-05-112-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixups to docstring, and disallow non-scalars as the distance args to np.gradient. Fixes #7548, fixes #6847
* | | | Merge pull request #7598 from drasmuss/masterCharles Harris2016-05-092-1/+15
|\ \ \ \ | | | | | | | | | | Cast array size to int64 when loading from archive
| * | | | BUG: Cast size to int64 when loading from archivedrasmuss2016-05-092-1/+15
| |/ / / | | | | | | | | | | | | | | | | Prevents overflow errors for large arrays on systems where the default int type is int32.
* | | | BUG: Fix TypeError when raising TypeErrorEric Wieser2016-05-081-1/+1
|/ / / | | | | | | Fixes "TypeError: pop expected at least 1 arguments, got 0"
* | | ENH: Add support for pathlib.Path objects to save/load functionsWendell Smith2016-04-062-15/+140
| | |
* | | Merge pull request #7505 from ahaldane/fixup_7382Charles Harris2016-04-041-1/+2
|\ \ \ | | | | | | | | MAIN: fix to #7382, make scl in np.average writeable
| * | | MAIN: fix to #7382, make scl in np.average writeableAllan Haldane2016-04-041-1/+2
| | | |
* | | | DOC: link frompyfunc and vectorizeendolith2016-04-041-0/+4
|/ / /
* | | Faster real_if_close.Antony Lee2016-03-301-1/+1
| | | | | | | | | | | | | | | | | | Because of the complexity of `allclose`, `real_if_close(t)` used to be ~2.5-3x slower than, say, `t + t`. This patch makes it approximately as fast.
* | | Merge pull request #7421 from pwolfram/nancumsumprodStephan Hoyer2016-03-262-16/+245
|\ \ \ | | | | | | | | ENH: adds np.nancumsum and np.nancumprod