| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Register the markers 'slow' and 'valgrind' in the `conftest.py` file
instead of `pytest.ini` as the latter file is not always present.
|
| |\
| |
| | |
Use exec() instead array_function_dispatch to improve tracebacks
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
xref GH-12028
Current behavior:
>>> np.dot(None, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/shoyer/dev/numpy/numpy/core/overrides.py", line 175, in public_api
implementation, public_api, relevant_args, args, kwargs)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'NoneType'
>>> np.stack([], invalid=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/shoyer/dev/numpy/numpy/core/overrides.py", line 148, in public_api
relevant_args = dispatcher(*args, **kwargs)
TypeError: _stack_dispatcher() got an unexpected keyword argument 'invalid'
With this change:
>>> np.dot(None, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 6, in dot
TypeError: unsupported operand type(s) for *: 'NoneType' and 'NoneType'
>>> np.stack([], invalid=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 4, in stack
TypeError: _stack_dispatcher() got an unexpected keyword argument 'invalid'
|
| |\ \
| | |
| | | |
MAINT: implement assert_array_compare without converting array to python list
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
API: Make MaskedArray.mask return a view, rather than the underlying mask
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This prevents consumers from reshaping the mask in place, which breaks things
As a result, `x.mask is x.mask` returns `False`, but this was already true of `x.data is x.data`.
May also be related to gh-10270
|
| |\ \ \ \
| | | | |
| | | | | |
MAINT: Use with statement to open/close files to fix LGTM alerts
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Handle subarrays in descr_to_dtype
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
ENH: Add 'bitorder' keyword to packbits, unpackbits
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | |_|_|/ /
| |/| | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
ENH: Implement radix sort
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Testing:
- np.int8/np.uint8
- np.int16/np.uint16
- np.int32/np.uint32
- np.int64/np.uint64
- np.float32/np.float64
- np.float16/np.longdouble
|
| | |/ / / / / |
|
| |\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
BLD: Make CI pass again with pytest 4.5
|
| | | |_|_|/
| |/| | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
BUG: longdouble(int) does not work
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
This needs to be kept alive so we can check the last character of the string
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* adjust test_longdouble_from_int to properly
handle platforms where np.longdouble and
np.double have roughly equivalent limits
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* add unit test for gh-9968, which currently
fails on master
* npy_longdouble.h include was missing in
arraytypes.c.src, causing all sorts of
unstable behavior for calls to
npy_longdouble_from_PyLong()
* correct control flow for PyBool_Type in
string_to_long_double() function; include
a unit test for np.longdouble(bool)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes gh-9968
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: Show the default value of deletechars in the signature of genfromtxt
|
| | | |_|_|_|/
| |/| | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
TEST: add duration report to tests, speed up two outliers
|
| | | | | | | | |
|
| | | | | | | | |
|
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG: Always return views from structured_to_unstructured when possible
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Also applies to unstructured_to_structured
While producing correct resutls, the test added in this commit would previously make an unecessary copy, causing the assertion to fail.
The cause was `astype` was being asked to convert from a subarray of shape `(x, y)` to one of `(x*y,)`, which it cannot do without making a copy.
This changes the approach used to skip the step of flattening subarrays to 1d
|
| |\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: Protect generators from log(0.0)
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Ensure log(0.0) doesn't produce inf/nan values when generating random values
|
| |\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
DOC: testing: Mention the handling of nan in the assert_equal docstring.
|
| | | | | | | | | | | |
|
| |\ \ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|_|/ /
|/| | | | | | | | | |
BUG: Removes ValueError for empty kwargs in arraymultiter_new
|
| | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
closes gh-13455
|
| |\ \ \ \ \ \ \ \ \ \
| | | | | | | | | | |
| | | | | | | | | | | |
DOC: Clarify rcond normalization in linalg.pinv
|