| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
|/ / /
| | |
| | |
| | | |
This isn't the case for `diff`
|
|\ \ \
| | | |
| | | | |
ENH: Rearrange testing module to isolate nose dependency.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The aim here is to separate out the nose dependent files prior to adding
pytest support. This could be done by adding new files to the general
numpy/testing directory, but I felt that it was to have the relevant
files separated out as it makes it easier to completely remove nose
dependencies when needed.
Many places were accessing submodules in numpy/testing directly, and in
some cases incorrectly. That presented a backwards compatibility
problem. The solution adapted here is to have "dummy" files whose
contents will depend on whether of not pytest is active. That way the
module looks the same as before from the outside.
In the case of numpy itself, direct accesses have been fixed. Having
proper `__all__` lists in the submodules helped in that.
|
| | | |
| | | |
| | | |
| | | | |
Once again, thanks to not using .descr
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Again, fixed by not using descr
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It seems that working with .descr is a generally terrible idea.
Instead we introduce `get_fieldspec`, which returns a list of 2-tuples,
encapsulating subdtypes.
This also means that np.core.test_rational.rational survives a roundtrip - its
.descr is 'V8', which ddoesn't survive
|
|/ / /
| | |
| | |
| | | |
Fixes #9338
|
| |/
|/| |
|
| | |
|
| |
| |
| |
| | |
Bare except is very rarely the right thing
|
| |
| |
| |
| | |
Fixes issue #9161
|
| |
| |
| |
| | |
Fixes #9137
|
|/
|
|
|
|
|
|
|
|
|
| |
Expand_dims works as documented when the index of the inserted NewAxis
in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim.
However, when index > a.ndim index is replaced by a.ndim and, when
index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be
negative and results in incorrect placement. The latter two cases are
now deprecated.
Closes #9100.
|
|\
| |
| | |
BUG: Preserve field order in join_by, avoids FutureWarning
|
| |
| |
| |
| | |
Fixes #8940
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #8815
|
|
|
|
|
|
| |
This fixes gh-8331
Also update the docs for arraysetops to remove the outdated "1D" from the
description, which was already incorrect for np.unique.
|
| |
|
|\
| |
| | |
BUG: Fix np.lib.nanfunctions on object arrays
|
| |
| |
| |
| | |
Fixes gh-8974 and gh-9008
|
|\ \
| |/
|/| |
BUG/DEP: Make ufunclike functions more ufunc-like
|
| |
| |
| |
| |
| |
| | |
No need to reinvent the wheel here - the ufunc machinery will handle the out arguments
Fixes #8993
|
| |
| |
| |
| | |
Fixes gh-8995
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarray
Per our discussion in
https://github.com/numpy/numpy/pull/8247#discussion_r112825050
* add back in accidentally dropped __repr__
|
| | |
|
|/
|
|
|
|
| |
This mixin class provides an easy way to implement arithmetic operators
that defer to __array_ufunc__ like numpy.ndarray in non-ndarray
subclasses.
|
|\
| |
| | |
TST/BUG: fromfile - fix test and expose bug with io class argument
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This bug only manifests itself in the Python 2 code path.
Falls back to the current Python 3 code path also on Python 2 because
the Python 3 code path is written precisely to handle this situation.
Also fix tests, and clarify in the documentation that the current
implementation requires the stream to be seekable.
|
|\ \
| | |
| | | |
BUG: Fix double-wrapping of object scalars
|
| | |
| | |
| | |
| | | |
Fixes #8642
|
| | |
| | |
| | |
| | | |
This fixes an omission where duplicate axes would only be detected when positive
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This also means that its axis argument invokes operator.index like
others do.
_validate_axis currently accepts lists of axes, which is a bug.
|
|\ \ \
| | | |
| | | | |
API: Return scalars for scalar inputs to np.real/imag
|
| | | |
| | | |
| | | |
| | | | |
Closes gh-8386.
|
|\ \ \ \
| |/ / /
|/| | | |
ENH: Allow bincount(..., minlength=0).
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since we only need to support python 2, we can remove any case where we just
pass a single string literal and use the b prefix instead.
What we can't do is transform asbytes("tests %d" % num), because %-formatting
fails on bytes in python 3.x < 3.5.
|
|\ \ \ \
| | | | |
| | | | | |
TST: Prove that poly1d coeffs are immutable
|
| | | | |
| | | | |
| | | | |
| | | | | |
Remove the comment suggesting that they are not
|
|\ \ \ \ \
| |/ / / /
| | | | | |
BUG: Prevent crash in poly1d.__eq__
|