summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #10207 from eric-wieser/np.r_-scalarsCharles Harris2017-12-123-16/+25
|\ | | | | ENH: Allow np.r_ to accept 0d arrays
| * BUG: Fix mutating state between items in np,r_Eric Wieser2017-12-111-3/+3
| | | | | | | | It's not at all clear what trans1d is supposed to do here, but it's certainly not supposed to change value between elements!
| * ENH: Allow np.r_ to accept 0d arraysEric Wieser2017-12-113-16/+25
| | | | | | | | Fixes gh-9233
* | Merge pull request #10208 from eric-wieser/void-negativeCharles Harris2017-12-121-1/+1
|\ \ | | | | | | (trivial) MAINT: Improve error message for void(-1)
| * | MAINT: Improve error message for void(-1)Eric Wieser2017-12-111-1/+1
| |/ | | | | | | Fixes gh-7263
* | DOC: change 'a'->'prototype' in empty_like docsJake VanderPlas2017-12-121-8/+8
|/
* Merge pull request #10193 from charris/fix-deprecation-warningCharles Harris2017-12-112-18/+14
|\ | | | | BUG: Fix bugs found by testing in release mode.
| * BUG: Fix numpy.testing.assert_equal in release mode.Charles Harris2017-12-101-3/+6
| | | | | | | | | | | | | | | | To be complete, the NaT handling needs to raise AssertionError when comparing NaT's with different types. That check was previously passed on and the resulting check, which would succeed in development mode because DeprecationWarning was converted to an error, warns in release mode.
| * BUG: Fix test_1d_format test.Charles Harris2017-12-101-15/+8
| | | | | | | | | | | | | | The test failed for numpy installed in release mode as the PendingDeprecationWarning issued by `object.__format__(a, '30')` was no longer converted to an error. The fix here is to make the test Python version dependent and suppress the warning when needed.
* | Merge pull request #10195 from eric-wieser/better-percentile-docsMarten van Kerkwijk2017-12-112-34/+28
|\ \ | | | | | | DOC: Fixup percentile docstring, from review in gh-9213
| * | DOC: Fixup percentile docstring, from review in gh-9213Eric Wieser2017-12-102-34/+28
| |/ | | | | | | Updates the two docstrings to match.
* | Merge pull request #10192 from eric-wieser/deprecate-pickle-aliasesCharles Harris2017-12-114-4/+36
|\ \ | | | | | | DEP: Deprecate the pickle aliases
| * | DEP: Deprecate the pickle aliasesEric Wieser2017-12-104-4/+36
| |/ | | | | | | | | | | * The np.ma functions are misleading, as they do not actually do anything special for ma.array * The np.loads functions doesn't even have numpy-specific documentation, and does not behave consistently with `np.load` * The string overloads of np.ma.load and np.ma.dump do not work well on python 3, as they make assumptions about whether a binary or text pickle file is used (gh-5491)
* | Merge pull request #10194 from mhvk/ufunc-reduce-reference-leakEric Wieser2017-12-111-42/+27
|\ \ | | | | | | BUG, MAINT: Ufunc reduce reference leak
| * | MAINT: Use single failure path in Py_UFunc_GenericReduction.Marten van Kerkwijk2017-12-111-42/+25
| | | | | | | | | | | | This should help avoid reference leaks in future additions.
| * | BUG: Failure to DECREF in PyUFunc_GenericReduction.Marten van Kerkwijk2017-12-101-2/+4
| | | | | | | | | | | | | | | Would lead to a reference leak for the case that an invalid axis is passed in.
* | | Merge pull request #10196 from eric-wieser/ma-pickle-regressionCharles Harris2017-12-101-2/+2
|\ \ \ | |/ / |/| | BUG: Fix regression in np.ma.load in gh-10055
| * | BUG: Fix regression in np.ma.load in gh-10055Eric Wieser2017-12-101-2/+2
| |/
* | BUG: Extra space is inserted on first line for long elementsEric Wieser2017-12-092-6/+27
|/ | | | Fixes gh-10181
* BUG: Fix line wrapping and remove trailing space for recarrayEric Wieser2017-12-082-3/+18
|
* BUG: Fix incorrect wrapping of `MaskedArray`Eric Wieser2017-12-081-2/+4
| | | | | | Missed in gh-10176. Already in the non-legacy branch, so no need to gate it here.
* Merge pull request #10176 from ahaldane/arr2str_suffixEric Wieser2017-12-082-13/+42
|\
| * ENH: add suffix option to array2string and wrap itAllan Haldane2017-12-082-13/+42
| |
* | BUG: linewidth was not respected for arrays other than 1dEric Wieser2017-12-072-12/+54
|/ | | | | | The available width needs to reduce by one for each dimension, to account for the trailing ] characters Fixes gh-10170
* BUG: Output of formatArray is not always wrapped correctlyEric Wieser2017-12-072-18/+68
| | | | | | The old behaviour is kept under the legacy='1.13' flag, as usual See tests for the changes.
* MAINT: Remove now-unnecessary implementation of matrix str/reprEric Wieser2017-12-061-13/+0
|
* MAINT/BUG: Simplify _formatArray, fixing array_repr(matrix) in the processEric Wieser2017-12-062-62/+74
| | | | | | | | Now: * Has one recursive base case * Is fewer lines of code * Does not rstrip the result of format_function (none of the builtin ones have trailing spaces anyway) * Recurses in the index, instead of the value, which handles `dtype=object` arrays without the need for the rank argument. This fixes #8442.
* MAINT: Never add the newline in _formatArray that is always discardedEric Wieser2017-12-061-4/+4
|
* Merge pull request #10160 from mattip/fix-PR9639Allan Haldane2017-12-054-16/+56
|\ | | | | BUG: test, fix problems from PR #9639
| * tweak from reviewmattip2017-12-051-3/+1
| |
| * test, fix problems from PR #9998mattip2017-12-044-16/+58
| |
* | Merge pull request #9942 from xoviat/flangCharles Harris2017-12-043-31/+142
|\ \ | |/ |/| ENH: distutils: add the flang compiler
| * ENH: disutils: add the flang compilerxoviat2017-11-222-20/+102
| | | | | | | | | | | | Flang is the first CRT-compatbile compiler for windows. It's added for Python versions with a compatible ABI. Future work may include adding it for other platforms.
| * ENH: distutils: improve windows autoconfigurationxoviat2017-11-221-11/+40
| | | | | | | | | | Autoconfigure libraries and headers when conda is detected on the path. Also support copenblas and clapack when found.
* | DOC: Fix minor typos in numpy/core/fromnumeric.py (#10072)Vedant Misra2017-12-011-2/+2
| |
* | TST: Move formatting tests into test_arrayprintEric Wieser2017-12-012-20/+18
| |
* | MAINT: Combine legacy sections of _formatArrayEric Wieser2017-12-011-15/+16
| |
* | BUG: edgeitems kwarg is ignoredEric Wieser2017-11-302-6/+13
| | | | | | | | The global settings were being used instead
* | Merge pull request #10116 from schnaitterm/masterCharles Harris2017-11-301-0/+15
|\ \ | | | | | | BLD: [ipo] compilation error with intel compiler
| * | fix line continuation style for if statementschnaitterm2017-11-301-2/+3
| | |
| * | Removed try/except blockschnaitterm2017-11-301-13/+9
| | |
| * | patched `numpy/core/setup_common.py` to check for the `-ipo` flag when ↵Michael Schnaitter2017-11-281-0/+18
| | | | | | | | | | | | | | | | | | | | | running the intel compiler and not on windows before checking for the long double representation, as this option causes the compiler to generate intermediary object files and interferes with checking the representation. This had already been done for MSVC style compilers.
* | | Merge pull request #10130 from eric-wieser/tidy-_leading_trailingMarten van Kerkwijk2017-11-301-14/+19
|\ \ \ | | | | | | | | MAINT: Simplify _leading_trailing
| * | | MAINT: Simplify _leading_trailingEric Wieser2017-11-301-14/+19
| | | | | | | | | | | | | | | | | | | | Removes the list comprehensions in favor of numpy primitives. Now recurses over the indices, not the values.
* | | | Merge pull request #10129 from eric-wieser/remove-trailing-spaceMarten van Kerkwijk2017-11-302-3/+78
|\ \ \ \ | | | | | | | | | | ENH: Strip trailing spaces from continuation in multiline arrayprint
| * | | | ENH: Strip trailing spaces and add newlines in truncated arrayprintEric Wieser2017-11-302-3/+78
| |/ / / | | | | | | | | | | | | | | | | | | | | This is otherwise pretty strict about trailing spaces, so we may as well cut them here too, especially since the repr has changed here already. The newlines look better to me for multi-dimensional arrays too.
* | | | Merge pull request #10131 from eric-wieser/fix-array2string-asarrayMarten van Kerkwijk2017-11-301-2/+4
|\ \ \ \ | | | | | | | | | | BUG: Fix downcasting in _array2string
| * | | | BUG: Fix downcasting in _array2stringEric Wieser2017-11-301-2/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | If there are no elements to remove, _leading_trailing returns a subclass view, rather than its normal behaviour of returning an ndarray copy. Since we call `asarray` in the other branch of this `if` anyway, we may as well do it in both.
* | | | Merge pull request #10113 from tkoeppe/ndarrayEric Wieser2017-11-291-2/+6
|\ \ \ \ | |/ / / |/| | | BUG: Fix further out-of-bounds accesses when handling 0d ndarrays
| * | | BUG: Fix further out-of-bounds accesses when handling 0d ndarraysThomas Köppe2017-11-281-2/+6
| | | |