| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |\
| |
| | |
BUG: Fixed 'midpoint' interpolation of np.percentile in odd cases.
|
| | |
| |
| |
| |
| | |
'midpoint' must return the same as 'higher' and 'lower' when the two
are the same, not 'lower' + 0.5 as it was doing.
|
| |\ \
| | |
| | | |
BUG: Fixed regressions in np.piecewise in ref to #5737 and #5729.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Added unit tests for these conditions.
|
| | | |
| | |
| | |
| | |
| | | |
isinstance(mode, str) is False in python2.7 when mode is of unicode
type, and mode is then mistakenly assumed to be a callable. See #7112
|
| |\ \ \
| | | |
| | | | |
TST: Add missing suffix to temppath manager
|
| | |/ /
| | |
| | |
| | |
| | | |
Without the suffix, np.save creates a new file and the file
does not get cleaned up.
|
| |\ \ \
| |/ /
|/| | |
DOC: Updated documentation wording and examples for np.percentile.
|
| | | | |
|
| | |/
| |
| |
| | |
Examples had some factual errors. Wording updated in a couple of places.
|
| |/ |
|
| | |
|
| |\
| |
| | |
BUG: Handle multiple percentiles for all-nan slices in nanpercentile
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Fix bug where nanpercentile would crash with an all-nan slices when
given multiple percentiles. Also corrects behavior where array sizes
different from numpy.percentile would be returned with keepdims enabled.
Fix #5760
|
| |\ \
| | |
| | | |
DEP: Warn MaskedArray will return views of mask when sliced
|
| | |/ |
|
| |/
|
|
|
|
|
| |
np.put and np.place do something only when the first argument
is an instance of np.ndarray. These changes will cause a TypeError
to be thrown in either function should that requirement not be
satisfied.
|
| |
|
|
| |
[ci skip]
|
| |
|
|
| |
[ci skip]
|
| |\
| |
| | |
ENH: allow single input argument in numpy.broadcast
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Some of the documentation for newbyteorder, copy and pasted in several
spots, had paragraphs ending in `::`, initiating a sphinx generated
Verbatim environment and resulting in "LaTeX Error: Too deeply nested".
The user_array.container class needed non-empty class documentation.
That that caused a problem is probably a numpydoc bug, but it is easy to
fix.
[skip ci]
|
| |\
| |
| | |
MAINT: Simplify some tests using temppath context manager.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This replaces code of the pattern
```
fd, name = tempfile.mkstemp(...)
os.close(fd)
try:
do stuff with name
finally:
os.remove(name)
```
with
```
with temppath() as name:
do stuff with name
```
A few more complicated cases are also handled. The remains some
particularly gnarly code the could probably be refactored to use
temppath, but that is a more demanding project.
|
| |/ |
|
| |
|
|
| |
Closes gh-6849.
|
| |\
| |
| | |
ENH: Tempfile context manager
|
| | |
| |
| |
| |
| | |
The test is in numpy/lib/tests/test_io.py. This commit is intended
as a demonstration of using temppath.
|
| |/
|
|
| |
Closes gh-6863.
|
| |
|
|
| |
The rowvar and bias parameters are booleans, not integers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The bug traces to the PyArray_OrderConverter
method in conversion_utils.c, where no errors
are thrown if the ORDER parameter passed in
is not of the string data-type or has a string
value of length greater than one. This commit
causes a DeprecationWarning to be raised, which
will later be turned into a TypeError or another
type of error in a future release.
Closes gh-6598.
|
| |
|
| |
In all cases, it's either ...*n^(-1/3) or .../n^(1/3), not both. The actual functions are implemented correctly.
|
| |\
| |
| | |
MAINT: Replace assert with assert_(...) in some tests.
|
| | | |
|
| |/
|
|
|
| |
Discovered while cleaning up uses of the silly aliases like
'np.object'.
|
| |\
| |
| | |
MAINT: Include from __future__ boilerplate in some files missing it.
|
| | |
| |
| |
| |
| | |
Some newer *.py files are missing the `from __future__` boilerplate
that helps assure Python2 and Python3 compatibility.
|
| |/
|
|
|
|
|
|
|
|
|
| |
The original had incorrect comparisons involving <=, <, and also failed
when the number of data points was 2. This fixes the use of the
comparisons and uses linear search for fewer than 5 data points.
The whole routine needs a simplified rewrite, but this takes care of the
bug.
Closes #6468.
|
| |\
| |
| | |
added extra line in the tile help doc to outline a general repeat, co…
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
BUG, MAINT: check that histogram range parameters are finite.
|
| | | |
| | |
| | |
| | | |
assure this. Improved some error-types.
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
* use SkipTest in numpy tests instead of importing it from nose
* add a KnownFailureException as an alias for KnownFailureTest
(the former is preferred, but the latter is kept for backcompat)
* rename the KnownFailure nose plugin into KnownFailurePlugin,
and keep the old name for backcompat
|
| | | |
|
| |\ \
| |/
|/| |
MAINT: Dictionary litteral
|
| | | |
|