Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ENH: Add stacklevel to all (or almost all) our function calls | Sebastian Berg | 2016-09-02 | 6 | -33/+33 |
| | |||||
* | TST: Use ComplexWarning suppression only where needed | Sebastian Berg | 2016-09-02 | 1 | -2/+6 |
| | |||||
* | TST: Replace catch_warnings when recording is not enforced in test_nanfuncs | Sebastian Berg | 2016-09-02 | 1 | -10/+10 |
| | |||||
* | TST: Use new warnings context manager in all tests | Sebastian Berg | 2016-09-02 | 2 | -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 nanfuncs | Sebastian Berg | 2016-09-02 | 3 | -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-bugs | Julian Taylor | 2016-08-27 | 1 | -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_*d | Joseph Fox-Rabinovitz | 2016-08-24 | 1 | -3/+3 |
| | | |||||
* | | DOC: Fixed documented dimension of return value | Joseph Fox-Rabinovitz | 2016-08-26 | 1 | -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-check | Stephan Hoyer | 2016-08-17 | 2 | -2/+45 |
|\ | | | | | ENH: improve duck typing inside iscomplexobj | ||||
| * | ENH: improve duck typing inside iscomplexobj | Michael Goerz | 2016-08-15 | 2 | -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 cpython | mattip | 2016-08-15 | 2 | -2/+5 |
|/ | |||||
* | Spelling and grammar fix. | Daniel Ching | 2016-08-04 | 1 | -2/+2 |
| | | | Histogram documentation was missing an 'a' in the phrase 'all around performance'. | ||||
* | DOC: fix typo in documentation of loadtxt (closes #7878) | dunneff | 2016-07-28 | 1 | -1/+1 |
| | |||||
* | DOC: Misplaced parens in formula | Joseph Fox-Rabinovitz | 2016-07-06 | 1 | -1/+1 |
| | |||||
* | "lambda" is not allowed to use as keyword arguments because it is a reserved ↵ | Toshihiro Kamishima | 2016-07-04 | 1 | -2/+2 |
| | | | | word. | ||||
* | Merge pull request #7347 from erensezener/generalized_rot90 | Charles Harris | 2016-06-22 | 4 | -105/+170 |
|\ | | | | | ENH Generalized rot90 | ||||
| * | MAINT: fix indentation and whitespaces of the flip function | Eren Sezener | 2016-03-20 | 1 | -12/+7 |
| | | |||||
| * | ENH: generalize rot90 with axes kwarg, move to function_base.py, and add tests | Denis Alevi | 2016-03-20 | 4 | -93/+163 |
| | | |||||
* | | TST: Test that polyfit raises if not enough data for cov estimate. | Charles Harris | 2016-06-15 | 2 | -4/+10 |
| | | | | | | | | Also a slight refactoring of np.polyfit. | ||||
* | | BUG: Make sure we don't divide by zero in np.polyfit. | David Schaich | 2016-06-15 | 1 | -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-2 | Charles Harris | 2016-06-15 | 2 | -7/+27 |
|\ \ | | | | | | | BUG: change real output checking to test if all imaginary parts are zero | ||||
| * | | TST: Set seed for deterministic random test | Endolith | 2015-03-08 | 1 | -103/+6 |
| | | | | | | | | | | | | also fixed some PEP8 issues | ||||
| * | | Simpler checking of complex conjugates | endolith | 2015-02-17 | 1 | -6/+3 |
| | | | |||||
| * | | TST: Fix missing imports, undeterministic test | endolith | 2015-01-25 | 1 | -2/+101 |
| | | | | | | | | | | | | Change to a deterministic test instead of using rand | ||||
| * | | TST: Add tests for np.poly() | endolith | 2015-01-25 | 1 | -0/+22 |
| | | | |||||
| * | | BUG: sort after conjugating so that poly() outputs real type for exact ↵ | endolith | 2015-01-25 | 1 | -6/+5 |
| | | | | | | | | | | | | conjugates | ||||
* | | | MAINT: FutureWarning for changes to np.average subclass handling | Allan Haldane | 2016-06-14 | 1 | -1/+13 |
| | | | | | | | | | | | | Fixes #7403 | ||||
* | | | DOC: fix typo in savetxt docstring (closes #7620) | bertrand | 2016-06-10 | 1 | -1/+1 |
| | | | |||||
* | | | STY: Misc whitespace cleanup. | Erik M. Bray | 2016-05-31 | 1 | -4/+4 |
| | | | |||||
* | | | BUG: Fixes to reading and writing of empty arrays, and in particular arrays ↵ | Erik M. Bray | 2016-05-31 | 2 | -12/+23 |
| | | | | | | | | | | | | with empty dtypes. See #6430 | ||||
* | | | BUG: fix handling of right edge of final bin. | Robert Kern | 2016-05-25 | 2 | -3/+8 |
| | | | |||||
* | | | ENH: correct initial index estimate in histogram. | Robert Kern | 2016-05-24 | 1 | -5/+16 |
| | | | |||||
* | | | TST: Failing test for histogram. | Robert Kern | 2016-05-24 | 1 | -0/+11 |
| | | | |||||
* | | | TST: mark two tests in numpy.lib as slow, speeds up numpy.lib tests by 5x | Ralf Gommers | 2016-05-16 | 2 | -2/+3 |
| | | | |||||
* | | | TST: fix test error due to use of deprecated np.testing.rand utility. | Ralf Gommers | 2016-05-16 | 1 | -4/+4 |
| | | | |||||
* | | | TST: fix test error when saving large array with savez. | Ralf Gommers | 2016-05-16 | 1 | -2/+9 |
| | | | |||||
* | | | TST: fix test errors for Pathlib usage tests in io.py. | Ralf Gommers | 2016-05-15 | 1 | -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.interp | Peter Creasey | 2016-05-12 | 2 | -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 lists | Endolith | 2016-05-11 | 3 | -4/+4 |
| | | | |||||
* | | | Merge pull request #7618 from ahaldane/gradient_docstring | Charles Harris | 2016-05-11 | 2 | -5/+10 |
|\ \ \ | | | | | | | | | BUG: distance arg of np.gradient must be scalar, fix docstring | ||||
| * | | | BUG: distance arg of np.gradient must be scalar, fix docstring | Allan Haldane | 2016-05-11 | 2 | -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/master | Charles Harris | 2016-05-09 | 2 | -1/+15 |
|\ \ \ \ | | | | | | | | | | | Cast array size to int64 when loading from archive | ||||
| * | | | | BUG: Cast size to int64 when loading from archive | drasmuss | 2016-05-09 | 2 | -1/+15 |
| |/ / / | | | | | | | | | | | | | | | | | Prevents overflow errors for large arrays on systems where the default int type is int32. | ||||
* | | | | BUG: Fix TypeError when raising TypeError | Eric Wieser | 2016-05-08 | 1 | -1/+1 |
|/ / / | | | | | | | Fixes "TypeError: pop expected at least 1 arguments, got 0" | ||||
* | | | ENH: Add support for pathlib.Path objects to save/load functions | Wendell Smith | 2016-04-06 | 2 | -15/+140 |
| | | | |||||
* | | | Merge pull request #7505 from ahaldane/fixup_7382 | Charles Harris | 2016-04-04 | 1 | -1/+2 |
|\ \ \ | | | | | | | | | MAIN: fix to #7382, make scl in np.average writeable | ||||
| * | | | MAIN: fix to #7382, make scl in np.average writeable | Allan Haldane | 2016-04-04 | 1 | -1/+2 |
| | | | | |||||
* | | | | DOC: link frompyfunc and vectorize | endolith | 2016-04-04 | 1 | -0/+4 |
|/ / / | |||||
* | | | Faster real_if_close. | Antony Lee | 2016-03-30 | 1 | -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/nancumsumprod | Stephan Hoyer | 2016-03-26 | 2 | -16/+245 |
|\ \ \ | | | | | | | | | ENH: adds np.nancumsum and np.nancumprod |