| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This makes the inverse of a 0x0 array simply be 0x0 again. It
also modifies the no-empty array check in favor of a no-empty
*inner* array, since the gufuncs seem to handle the other case
fine.
|
| |
|
| |
|
|\
| |
| | |
Updated documentation for histogram2d() in twodim_base.py according to discussion
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Replace use of WarningManager by warnings.catch_warnings and then deprecate it.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
WarningManager was a workaround for the lack of the with statement
in Python versions < 2.6. As those versions are no longer supported
it can be removed.
Deprecation notes are added to WarningManager and WarningMessage, but
to avoid a cascade of messages in third party apps, no warnings are
raised at this time, that can be done later.
Closes #3519.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
The buffer test in numpy/core/tests/test_api.py was apparently
testing for incorrect behavior that was corrected in Python 2.7.5.
This PR changes the test to check for the correct results and makes
running it depend on Python version.
Closes #3512.
|
|\ \
| | |
| | | |
MAINT: Use np.errstate context manager.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now that Python < 2.6 is no longer supported we can use the errstate
context manager in places where constructs like
```
old = seterr(invalid='ignore')
try:
blah
finally:
seterr(**old)
```
were used.
|
|\ \ \
| | | |
| | | | |
MAINT: Remove outdated version checks.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we
no longer need to check for that and can also remove the code that is
specific to those earlier versions.
To make this a bit safer, the toplevel setup.py file now contains a
check of the Python version number and raises an error when run by an
unsupported version.
|
|\ \ \
| |/ /
|/| | |
ENH: added short path scalar array in get_ufunc_arguments from ufunc_object.c
|
| | |
| | |
| | |
| | |
| | | |
Check if two dtypes references to the same object in can_cast_scalar_to from convert_datatype.c,
then the result is always OK
|
| | |
| | |
| | |
| | | |
Check if object is of array with newtype is NULL. If so return it directly instead of checking for casting.
|
| | |
| | |
| | |
| | | |
Check if object is of array with newtype is NULL. If so return it directly instead of checking for casting.
|
| | |
| | |
| | |
| | | |
Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
|
| | |
| | |
| | |
| | | |
Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
|
| | |
| | |
| | |
| | | |
Check if object is of array dimension zero, then avoid heavy calls like PyArray_FromAny. Hence passing obj to out_op PyArrayObject unchanged. Also PyArray_FromAny(obj,NULL,0,0,0,NULL) calls PyArray_FromArray(obj,NULL,0) which return original obj
|
|\ \ \
| | | |
| | | | |
Add regression tests for pickleable record arrays
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Fix "numpy scalar * array-like == performance horror"
|
| |/ /
| | |
| | |
| | | |
Fixes #3375
|
|\ \ \
| | | |
| | | | |
Fix creation of string arrays from object types
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the new code will more often propagate the invalid floating point
exception if comparing against nan, so allclose now ignores it (but
still returns False)
|
|\ \ \ \
| | | | |
| | | | | |
Fix exceptions being swallowed by fromiter.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This improves the testing of the edge cases.
Work done with @certik.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
All exceptions from underlying iterator were being collapsed into a
generic one. This allows the original exception to propagate.
Closes gh-2592.
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | | |
np.pad will now accept a pad_width containing zeros. The functionality
was already implemented, but validation of input was too strict.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This bug affected the various polynomial class methods fromroots due to
the ability to specify both window and domain. In that circumstance the
roots are mapped from the domain to the window by the substitution
`x = off + scl*x`. The polynomial that was being generated was monic in
the window before substitution, but if scl was not one it was not monic
considered as a function of the variable x in the domain. The fix is to
divide the generated coefficients by `scl ** deg` so that the scaling of
the highest degree term after substitution is canceled.
It might be better to make the scaling optional in the future, but this
fix makes the result match the documentation.
Closes #3467.
|
|\ \ \
| | | |
| | | | |
Add convenience functions nans, infs, nans_like, infs_like
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|