summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: remove a bunch of compiler warningsJulian Taylor2015-07-0312-18/+20
| | | | | there is a memset warning remaining when built with -flto, though its not clear where exactly it comes from.
* DOC: Fix docstring warnings in documetation generation.Charles Harris2015-07-0112-66/+116
| | | | | | | | | | | | Most of these fixes involve putting blank lines around .. versionadded:: x.x.x and .. deprecated:: x.x.x Some of the examples were also fixed.
* DOC: Remove references to removed setasflat ndarray method.Charles Harris2015-07-012-32/+1
|
* DOC: Add reference to new stack function in numpy/lib/info.py.Charles Harris2015-07-011-0/+1
|
* ENH: improve string representation of NaTs in timedelta64 arraysAntoine Pitrou2015-07-012-5/+29
| | | | | | | Rather than representing them as "-9223372036854775808", we now represent them as "'NaT'", as in datetime64 arrays. Note this changes the numpy.core.arrayprint printer, not the builtin printer.
* Merge pull request #6000 from njsmith/inplace-matmul-errorseberg2015-06-282-1/+23
|\ | | | | BUG: Make a @= b error out
| * BUG: Make a @= b error outNathaniel J. Smith2015-06-272-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, we defined a nb_matrix_multiply slot but not a nb_inplace_matrix_multiply slot, which means that a statement like a @= b would be silently expanded by the CPython interpreter to become a = a @ b This is undesireable, because it produces unexpected memory allocations, breaks view relationships, and so forth. This commit adds a nb_inplace_matrix_multiply slot which simply errors out, and suggests that users write 'a = a @ b' explicitly if that's what they want.
* | Merge pull request #5955 from jaimefrio/faster_revertCharles Harris2015-06-271-31/+25
|\ \ | | | | | | MANT: Cleanup of _pyarray_revert
| * | MANT: Cleanup of _pyarray_revertJaime Fernandez2015-06-101-31/+25
| | | | | | | | | | | | | | | Removed several useless calls to copyswap, plus added a slightly more efficient method for non-complex numeric types.
* | | Merge pull request #5865 from jaimefrio/where_writeableCharles Harris2015-06-275-34/+39
|\ \ \ | | | | | | | | BUG: np.nonzero behaving differently for 1-D arrays
| * | | BUG: np.nonzero behaving differently for 1-D arraysJaime Fernandez2015-05-135-34/+39
| | | | | | | | | | | | | | | | Fixes #5837
* | | | Merge pull request #5953 from yarikoptic/bf/guard-getmembersCharles Harris2015-06-271-1/+1
|\ \ \ \ | | | | | | | | | | BF: do not crash lookfor if inspection fails - catch any Exception
| * | | | BF: do not crash lookfor if inspection fails - catch any ExceptionYaroslav Halchenko2015-06-081-1/+1
| | |/ / | |/| |
* | | | Merge pull request #5971 from larsmans/c-fixesCharles Harris2015-06-272-132/+222
|\ \ \ \ | | | | | | | | | | MAINT: core: less function pointer casting in arraytypes.c.src
| * | | | MAINT: core: some missing casts in multiarraymoduleLars Buitinck2015-06-151-2/+3
| | | | |
| * | | | MAINT: core: less function pointer casting in arraytypes.c.srcLars Buitinck2015-06-151-130/+219
| | | | |
* | | | | MAINT: filter out some warnings triggered by nose 1.3.7 + python 3.5b2Nathaniel J. Smith2015-06-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filed upstream as: https://github.com/nose-devs/nose/issues/929 Not our problem.
* | | | | Merge pull request #6016 from njsmith/remove-gzip-monkeypatchCharles Harris2015-06-241-49/+2
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove legacy monkeypatching of GzipFile
| * | | | | MAINT: remove legacy monkeypatching of GzipFileNathaniel J. Smith2015-06-241-49/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm not sure exactly when GzipFile.seek started supporting the whence= argument by default -- sometime around python 2.5 from the looks of http://bugs.python.org/issue1355023. But in any case it was definitely there by 2.6, which is now the earliest version we support, so there's no longer any need to monkeypatch it in. This also fixes an error in python 3.5b2, which I haven't bothered to track down further because these are the wages of monkeypatching.
* | | | | | MAINT: remove use of 'raise StopIteration' from generatorsNathaniel J. Smith2015-06-241-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | This triggers a PendingDeprecationWarning in py3.5 -- you're supposed to just write "return" instead (which on earlier versions is equivalent). See PEP 479: https://www.python.org/dev/peps/pep-0479/
* | | | | DOC, MAINT: fix typo in np.fill_diagonal docstring exampleFrançois Magimel2015-06-241-3/+5
| | | | |
* | | | | Auto merge of #6009 - juliantaylor:pedantic, r=njsmithHomu2015-06-231-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: fix two Wpedantic warnings in public header Wpedantic is to strict to be really useful generally, but our public headers at least should avoid easy to avoid warnings for projects that do use this flag.
| * | | | | MAINT: fix two Wpedantic warnings in public headerJulian Taylor2015-06-231-2/+2
| | | | | |
* | | | | | Merge pull request #5753 from empeeu/percentile-nanJulian Taylor2015-06-232-27/+269
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Added proper handling of median and percentile when nan's are prese...
| * | | | | | Updating unit tests for removed warning.empeeu2015-06-221-3/+3
| | | | | | |
| * | | | | | Moving warning outside of for loop.empeeu2015-06-221-4/+4
| | | | | | |
| * | | | | | BUG: Added proper handling of median and percentile when nan's are present ↵empeeu2015-06-222-27/+269
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in array to close issue #586. Also added unit tests.
* | | | | | Merge pull request #5982 from embray/fix-chararray-sliceCharles Harris2015-06-222-2/+21
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Fixed slicing of chararrays on Python 3.
| * | | | | BUG: Fixed slicing of chararrays on Python 3.Erik M. Bray2015-06-222-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When taking a slice of a chararray it was calling the rstrip() method on the resulting slice, resulting in a new array rather than a view of the original. This was an unintended consequence of the sq_slice member of the tp_as_sequence mapping being ignored in Python 3, so that slice lookups go directly through __getitem__. Fix test_expandtabs to not make the assumption that rstrip() will be applied twice to a value when using T[x][y] style indexing.
* | | | | | Merge pull request #5998 from charris/update-version-hashRalf Gommers2015-06-223-1/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Update version info for Numpy 1.10.
| * | | | | | MAINT: Update version info for Numpy 1.10.Charles Harris2015-06-223-1/+6
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update version hash in numpy/core/code_generators/cversions.txt. Update API version in numpy/core/setup_common.py Update API version in numpy/core/include/numpy/numpyconfig.h
* | | | | | Merge pull request #6003 from argriffing/eigh-ascending-eigenvaluesCharles Harris2015-06-222-16/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: eigenvalues returned by eigh are ascending
| * | | | | | DOC: docstring typos _ssyevd -> _syevdalex2015-06-221-2/+2
| | | | | | |
| * | | | | | MAINT: eigenvalues returned by eigh are ascendingalex2015-06-222-14/+13
| | | | | | |
* | | | | | | BUG: np.float16 not recognized in np.common_typeMarten van Kerkwijk2015-06-222-11/+14
|/ / / / / /
* | | | | | DOC: Fix examples in npyio.py to properly import StringIO.Charles Harris2015-06-211-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In two places they were doing >>> from StringIO import StringIO Since Python 2.6 that should be >>> from io import StringIO Closes #5995.
* | | | | Merge pull request #5490 from charris/cleanup-gh-4986Charles Harris2015-06-218-64/+70
|\ \ \ \ \ | | | | | | | | | | | | DOC: Update indexing docs.
| * | | | | DOC: Update docs.Gabor Kovacs2015-06-218-64/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update docs for boolean array indexing and nonzero order. Add links to row-major and column-major terms where they appear. Closes #3177
* | | | | | Merge pull request #5991 from charris/1.10-deprecated-removal-riskyCharles Harris2015-06-213-92/+26
|\ \ \ \ \ \ | | | | | | | | | | | | | | 1.10 deprecated removal risky
| * | | | | | DEP,MAINT: Remove old_behavior keyword from numeric.correlate.Charles Harris2015-06-212-60/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Risky perhaps. The old correlate behavior was deprecated in NumPy 1.4 and the default behavior changed to the new (standard) version in 1.5. The old function, with slightly different signature, is still available in numpy.core.multiarray.correlate. If this causes problems in the 1.10 release process, this commit can be reverted.
| * | | | | | DEP,MAINT: Remove keywords "skiprows" and "missing" from genfromtxt.Charles Harris2015-06-211-32/+9
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Deprecated in NumPy 1.5. If this causes problems in the 1.10 release cycle the change can be reverted.
* | | | | | ENH: Add a norm keyword and tests for fft transformsJoseph Martinot-Lagarde2015-06-213-43/+214
|/ / / / /
* | | | | Merge pull request #5990 from charris/1.10-deprecated-removalCharles Harris2015-06-2125-256/+197
|\ \ \ \ \ | | | | | | | | | | | | 1.10 deprecated removal
| * | | | | DEP: Add notes to some deprecations.Charles Harris2015-06-212-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some keywords are deprecated and slated for removal in numpy 2.0. Add comment to deprecation date to clarify that.
| * | | | | DEP,MAINT: Remove support for a._format array printing.Charles Harris2015-06-211-44/+27
| | | | | | | | | | | | | | | | | | | | | | | | Deprecated, removed from numpy/core/arrayprint.py.
| * | | | | DEP,MAINT: Remove try_run and get_output.Charles Harris2015-06-211-57/+0
| | | | | | | | | | | | | | | | | | | | | | | | Deprecated functions in numpy/distutils/command/config.py.
| * | | | | DEP,MAINT: Remove deprecated splitcmdline.Charles Harris2015-06-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was in numpy/distutils/exec_command.py. Update 1.10-notes.rst.
| * | | | | BUG: Fix wrong deprecation message for logical unary '-' operator.Charles Harris2015-06-212-13/+27
| | | | | |
| * | | | | MAINT: Mark deprecation warning with a date and Numpy version.Charles Harris2015-06-2122-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments.
| * | | | | DEP,MAINT: Raise IndexError if axis != 0 when concatenating 1-D arrays.Charles Harris2015-06-212-94/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was deprecated in NumPy 1.7 with a warning that it would raise an error in the future. Tests for the new error are added and the test that allowed that special case is removed.