summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | DOC: Add graph showing different behaviors of np.percentileEric Wieser2018-03-151-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With thanks to @ricardoV94 for inspiring this
| * | | | | | TST: Import abstract classes from collections.abcFrederick Lefebvre2018-03-141-2/+7
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Abstract collection classes accessed from the collections module have been deprecated since Python 3.3. They should be accessed through collections.abc. When run with Python 3.7, the deprecation warning cause multiple tests to fail.
| * | | | | Fix low-hanging Pypy compatibility issues (#10737)Pauli Virtanen2018-03-123-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TST: skip refcount-requiring tests if sys.refcount is missing * ENH: io: add refcheck=False to a safe .resize() call The array is allocated immediately above, and the resize always succeeds so it is not necessary to check it. Fixes Pypy compatibility. * TST: remove unused code * TST: factor skipif(not HAS_REFCOUNT) into a separate decorator
| * | | | | BUG: fix error message in numpy.selectLouis Potok2018-03-081-1/+1
| | | | | |
| * | | | | DOC: Grammar of np.gradient docstringAllan Haldane2018-03-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | [ci-skip]
| * | | | | DOC: add versionadded for NDArrayOperatorsMixin.Stephan Hoyer2018-03-041-0/+2
| | | | | |
| * | | | | Merge pull request #10547 from hobler/patch-1Charles Harris2018-02-281-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | DOC: Fix incorrect formula in gradient docstring.
| | * | | | | Update function_base.pyhobler2018-02-081-1/+1
| | | | | | |
| * | | | | | BUG/MAINT: Remove special handling of 0d arrays and scalars in interpEric Wieser2018-02-252-18/+14
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are now handled generically by the underlying C function This fixes the period argument for 0d arrays. Now never returns a pure-python scalar, which matches the behaviour of most of numpy. Rework of b66a200a4a1e98f1955c8a774e4ebfb4588dab5b
| * | | | | MAINT: Improve range error messages in np.histogram (#10603)Kirit Thadaka2018-02-201-7/+9
| | | | | |
| * | | | | Merge pull request #10501 from msornay/fromregex-bytesEric Wieser2018-02-202-3/+10
| |\ \ \ \ \ | | | | | | | | | | | | | | BUG: fromregex: asbytes called on regexp objects
| | * | | | | BUG: fromregex: asbytes called on regexp objectsMathieu Sornay2018-02-052-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling fromregex() with a binary stream and a regular expression object, asbytes() was called on the regexp object, resulting in an incorrect regular expression being compiled and used.
| * | | | | | BUG: break cyclic refs in recursive closuresAllan Haldane2018-02-181-0/+5
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Fixes #10620
| * | | | | BUG: Revert sort optimization in np.unique.Charles Harris2018-02-142-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The optimization was to sort integer subarrays by treating them as strings of unsigned bytes. That worked fine for finding the unique subarrays, but the sort order of the results could be unexpected. Closes #10495.
* | | | | | ENH: Make NpzFile conform to the Mapping protocolEric Wieser2018-02-201-27/+32
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is potentially a breaking change for python 3, because the Mapping protocol changed between python 2 and python 3 - `items()` and `keys()` now return views, not lists. In practice, any user running `2to3` should have found this fixed itself automatically. Also fixes dir(np.lib.npyio.BagObj(dict(a=1))) on python 3. Fixes gh-1723
* | | | | Merge pull request #10324 from eric-wieser/histogram-range-comparisonCharles Harris2018-02-082-7/+65
|\ \ \ \ \ | |_|/ / / |/| | | | BUG: Fix crashes when using float32 values in uniform histograms
| * | | | BUG: Fix crashes when using float32 values in uniform histogramsEric Wieser2018-02-022-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8123, closes #9189, fixes #10319 This is a workaround to #10322, not a fix for it. Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
* | | | | Merge pull request #10401 from eric-wieser/fix-10394Charles Harris2018-02-062-17/+27
|\ \ \ \ \ | | | | | | | | | | | | BUG: Resize bytes_ columns in genfromtxt
| * | | | | BUG: Resize bytes_ columns in genfromtxtEric Wieser2018-01-152-17/+27
| | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-10394, due to regression in gh-10054
* | | | | | minor fix for python3 compatibilityDennis Weyland2018-02-051-2/+2
| | | | | |
* | | | | | python 2.7.5 bugfixDennis Weyland2018-02-051-2/+5
| | | | | |
* | | | | | Merge pull request #10502 from eric-wieser/swapaxes-AxisErrorCharles Harris2018-02-042-5/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Use AxisError in swapaxes, unique, and diagonal
| * | | | | | MAINT: Use AxisError in swapaxesEric Wieser2018-02-032-5/+7
| | | | | | |
* | | | | | | DOC: Fix type of axis in nanfunctions (#10421)Tobias Fischer2018-02-031-14/+14
|/ / / / / /
* | | | | | BUG: nan_to_num does not return scalars for scalar integer input (#10441)Matheus Vieira Portela2018-02-012-9/+30
| | | | | |
* | | | | | MAINT: Make it clear that counts and inverse depend only on the maskEric Wieser2018-01-311-2/+2
| | | | | |
* | | | | | DOC: Use a bulleted list to show the outputs of `unique`, for clarityEric Wieser2018-01-311-4/+5
| | | | | |
* | | | | | MAINT: Remove special-casing of empty arrays in unique_1dEric Wieser2018-01-311-16/+8
| | | | | |
* | | | | | MAINT: Remove messy handling of output tuple in np.uniqueClaudio Freire2018-01-311-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | Largely taken from gh-9531
* | | | | | BUG: Fixed polydiv for Complex Numbers (#10473)Deepak Kumar Gouda2018-01-302-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This previously failed with: TypeError: Cannot cast ufunc subtract output from dtype('complex128') to dtype('float64') with casting rule 'same_kind'
* | | | | | DOC: See #10098 and minor punctuation cleanup (#10478)Derrick Williams2018-01-281-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: See #10098 and minor punctuation cleanup * DOC: Correcting per PR comments
* | | | | | DOC: fix formatting in interp exampleZane Bradley2018-01-251-1/+2
| |_|/ / / |/| | | |
* | | | | Merge pull request #10342 from anaskhan96/union1d-fixCharles Harris2018-01-182-1/+9
|\ \ \ \ \ | | | | | | | | | | | | BUG: arrays not being flattened in `union1d`
| * | | | | STY: Break some long lines.Charles Harris2018-01-181-1/+2
| | | | | | | | | | | | | | | | | | [ci skip]
| * | | | | adding a reference to the related issueAnas Khan2018-01-101-0/+1
| | | | | |
| * | | | | adding new tests for union1dAnas Khan2018-01-091-0/+6
| | | | | |
| * | | | | BUG: concatenation using axis=None in union1dAnas Khan2018-01-091-1/+1
| | | | | |
| * | | | | BUG: fixing flattening of arrays in `union1d` in arraysetops.pyAnas Khan2018-01-081-1/+1
| | | | | |
* | | | | | DOC: Fix version added labels in numpy.uniqueSamuel Jackson2018-01-171-0/+4
| | | | | |
* | | | | | Merge pull request #10294 from xoviat/pytest-cleanupEric Wieser2018-01-091-6/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | | MAINT: pytest cleanups
| * | | | | MAINT: cleanup yield testsxoviat2018-01-061-6/+6
| | | | | |
* | | | | | More misc. typosluz.paz2018-01-046-9/+9
| |_|/ / / |/| | | | | | | | | Found via `codespell`
* | | | | Merge pull request #10213 from jarrodmillman/nep-processCharles Harris2018-01-031-3/+3
|\ \ \ \ \ | | | | | | | | | | | | ENH: Set up proposed NEP process
| * | | | | DOC: Prepare to host NEPs on GH pagesJarrod Millman2017-12-141-3/+3
| | | | | |
* | | | | | Merge pull request #10241 from eric-wieser/no-repeated-percentile-checksCharles Harris2018-01-012-34/+53
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Avoid repeated validation of percentiles in nanpercentile
| * | | | | | MAINT: Avoid repeated validation of percentiles in nanpercentileEric Wieser2017-12-182-34/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, this would check the percentiles were 0 <= q <= 100 on every single slice of non-reduction axes. This also pulls the division by 100 to the top level, which makes things clearer, and also reduces the size of the stack trace
* | | | | | | Merge pull request #10287 from eric-wieser/ptp-emptyCharles Harris2017-12-301-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: Allow ptp to take an axis tuple and keepdims
| * | | | | | | ENH: Allow ptp to take an axis tuple and keepdimsEric Wieser2017-12-281-0/+3
| | |_|/ / / / | |/| | | | |
* | | | | | | Documentation and misc. typosluzpaz2017-12-301-1/+1
|/ / / / / / | | | | | | | | | | | | Found via `codespell`
* | | | | | MAINT: Extract helper function for last-bound-inclusive search_sortedEric Wieser2017-12-271-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | Also avoids `r_`, and construction of arrays from lists