| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG: graceful DataSource __del__ when __init__ fails
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* DataSource __del__ could raise an AttributeError
if __init__ failed for any reason; __del__ now gracefully
handles the case where __init__ fails, as happens in the
internals of refguide_check when handling DataSource with
an unexpected kwarg
|
| |/ / / / / /
|/| | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ENH: set correct __module__ for objects in numpy's public API
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes GH-12271
Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to
``'numpy'``, or appears in an explicit whitelist of undocumented functions and
exported bulitins. These should eventually be documented or removed.
I also identified a handful of functions for which I had accidentally not setup
dispatch for with ``__array_function__`` before, because they were listed under
"ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in
trusting code comments :).
|
| | | | | | | |
|
| | | | | | | |
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
TST: arg handling tests in histogramdd
|
| | |_|/ / /
| |/| | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Per discussion on the mailing list, __array_function__ isn't quite ready to
release as part of NumPy 1.16:
https://mail.python.org/pipermail/numpy-discussion/2018-November/078949.html
We'd like to improve performance a bit, and it will be easier to support
introspection on NumPy functions if we support Python 3 only.
So for now, you need to set the environment variable
``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` to enable dispatching.
|
| | | | | |
| | | | | |
| | | | | | |
* ENH: Improve support for pathlib.Path objects in more functions
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
ENH: Add support for third-party path-like objects by backporting os.fspath
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes gh-12263
We can't support generators with dispatch for ``__array_function__``.
|
| | | | | |
| | | | | |
| | | | | | |
BUG: test and fix import linspace in index_tricks
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: improved error message when no __array_function__ implementation found
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
TST: tests for sort_complex()
|
| | |/ / / /
| |/| | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* ENH: __array_function__ support for np.lib, part 2
xref GH12028
np.lib.npyio through np.lib.ufunclike
* Fix failures in numpy/core/tests/test_overrides.py
* CLN: handle depreaction in dispatchers for np.lib.ufunclike
* CLN: fewer dispatchers in lib.twodim_base
* CLN: fewer dispatchers in lib.shape_base
* CLN: more dispatcher consolidation
* BUG: fix test failure
* Use all method instead of function in assert_equal
* DOC: indicate n is array_like in scimath.logn
* MAINT: updates per review
* MAINT: more conservative changes in assert_array_equal
* MAINT: add back in comment
* MAINT: casting tweaks in assert_array_equal
* MAINT: fixes and tests for assert_array_equal on subclasses
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: test invalid histogram range
|
| | | | | | |
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC, TST: cover setdiff1d assume_unique
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* add unit test for setdiff1d covering code
path where assume_unique is True
* remove setdiff1d docstring guarantee that
returned value is sorted -- it is not
|
|\ \ \ \ \ \ |
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* unravel_index() now supports the shape argument
(Fixes #10586) while retaining backwards compatibility
for the dims argument
* added corresponding unit tests and docstring
changes
* updated compatibility release notes
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* add unit tests to probe previously-uncovered
code paths in byte_bounds() that handle both
positive and negative strides in non-contiguous
arrays (or, at least, arrays with unusual ordering)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* add a unit test for an uncovered code path
where a histogram array does not match the
shape of the provided array of weights
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
ENH: __array_function__ support for np.lib, part 1/2
|
| | | | |
| | | | |
| | | | |
| | | | | |
np.lib.arraypad through np.lib.nanfunctions
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: error tests for fill_diagonal()
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* add error handling tests for previously
uncovered code in fill_diagonal()
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
* add unit tests for previously uncovered
error handling code in diag_indices_from()
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Allow boolean subtract in histogram
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Convert bool to uint at start, rather than attempt a XOR
Only check type against np.bool_
Refactor warnings check
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT, TST refactor pickle imports and tests
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
All imports of pickle from numpy modules are now done this way:
>>> from numpy.core.numeric import pickle
Also, some loops on protocol numbers are added over pickle tests that
were not caught from #12090
|
| | | | | |
|
|/ / / / |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: remove redundant imports
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
ENH: maximum lines of content to be read from numpy.loadtxt
|