| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
BUG: Fix fill value in masked array '==' and '!=' ops.
|
| |
| |
| |
| |
| | |
Cover the string and numeric types. Structured types were
already covered.
|
| |
| |
| |
| |
| |
| |
| | |
The type of the fill_value needs to be `bool_` in order to match
the result type of `==` and `!=`.
Closes #12248.
|
|\ \
| | |
| | | |
MAINT: Move ctype -> dtype conversion to python
|
| | |
| | |
| | |
| | | |
Without this, the build will not rerun due to changes in this file
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This comes with a number of changes:
* Propagating the error if parsing a ctypes object goes wrong, rather than silencing it and trying more things.
* Rejecting ctypes bitfields, which were incorrectly treated as subarrays.
* Rejecting ctypes Unions, which were previously treated as if they were structs
* Rejecting ctypes pointers, which were silently converted into their dereferenced types.
This was particularly dangerous behavior when parsing structs with nested pointers, where swapping out the type changes the struct layout!
* No longer support ctypes duck-types, which includes...
* No longer supporting a `_fields_` attribute on `np.void` subclasses. This was a bug due to a poorly-shared code-path between void and ctypes types.
The upshot is it should be easier to fix future problems in parsing ctypes types.
|
| | | |
|
| | |
| | |
| | | |
BUG: test and fix import linspace in index_tricks
|
| | | |
|
|\ \ \ |
|
| |\ \ \
| | |/ /
| |/| | |
MAINT: improved error message when no __array_function__ implementation found
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | | |
| | | | | |
BUG: Fix crash in repr of void subclasses
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #12206, which was a regression introduced by #10602
Frankly I'd consider the results expected by `test_void_subclass_unsized` and `test_void_subclass_sized` undesirable, but they match the behavior in 1.12.x
|
| |\ \ \ \
| | | | | |
| | | | | | |
MAINT: Block algorithm with a single copy per call to `block`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
``np.block``.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix misleading assert message in assert_almost_equal #12200
|
| | | |_|_|/
| | |/| | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #12200 by making a copy of the matrix before NaN's are excluded.
Add a test for it.
|
| |\ \ \ \ \
| | |_|_|_|/
| |/| | | | |
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
|
| |\ \ \
| | | | |
| | | | | |
BUG: Fix MaskedArray fill_value type conversion.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes the regression introduced by #10211 where the masked array fill
value type was not properly converted by astype.
Closes #12070.
|
| |\ \ \ \
| | | | | |
| | | | | | |
TST: unit tests for column_stack.
|
| | | | | | |
|
| | |_|/ /
| |/| | | |
|
| |\ \ \ \
| | |/ / /
| |/| | | |
MAINT: delay import of distutils.msvccompiler to avoid warning on non-Windows.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
*Importing* distutils.msvccompiler works on non-Windows systems, but
triggers a pointless "warning" (using distutils' own logging system;
"Can't read registry etc.") Delay the import so that other uses of
distutils.misc_util are not affected.
When running distutils commands, the verbosity is set by default to 1
(`self.verbose = 1` in distutils/dist.py) so the warning does get
displayed.
To trigger the warning, subclass e.g. build_ext, override its
finalize_options method, import numpy.distutils.misc_util from there,
and then pass the new build_ext as cmdclass to setuptools.setup().
Partially reverts 15f52f5.
|
| |\ \ \ \
| | | | | |
| | | | | | |
BUG: timedelta64 now accepts NumPy ints
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
ENH: __array_function__ for multiarray functions
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| |\ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ENH: __array_function__ for np.core.defchararray
|
| | | | | | | | |
|
| | | | | | | | |
|
| |\ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
ENH: Generalized ufunc signature expansion for frozen and flexible dimensions
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|