| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |\ \ \ \
| | | | | | | |
| | | | | | | | |
ENH: Adding a count parameter to np.unpackbits
|
| | | | |/ / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Tests are included.
Couple of minor fixes:
- Fixed packbits/unpackbits docs to reflect proper keyword names
- Added .pytest_cache to .gitignore
|
| | | |/ / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Alternative to gh-12978, using a method that does not need a lot of special cases.
This is likely more robust in the face of overflow
Fixes gh-12951.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* TST: Move test for negative stat_length
and extend coverage to all modes and more variations of a negative
stat_length.
* TST: Merge tests for pad_width in single class
* TST: Test behavior of pad's kwargs for all modes
* TST: Move test to TestReflect
Can be grouped with already existing test class checking the behavior
for the reflect mode.
* TST: Simplify regression test for object input
* TST: Move testing pad_width as ndarray
Can be grouped in class TestPadWidth as this test checks if an ndarray
is accepted as the value to pad_width
* TST: Remove faulty tests for pad_width's type
These test were ineffective. The TypeError raised in these test was not
actually due to pad_width receiving the wrong type but due to the
missing parameter mode.
Added missing type complex to the appropriate existing test checking for
pad_widths type behavior.
* TST: Move test for pad_width of zero
* TST: Move test for simple stat_length
* TST: Simplify classes with only one test
* TST: Add naive test for non-contiguous arrays
* MAINT: Don't import pad directly
Using np.pad instead of directly importing the function seems to be more
inline with other test modules.
* STY: Make class layout consistent in module
* TST: Fix match-string for missing pad mode error
The CLI fails due to error message containing a reference to
_pad_dispatcher() being returned instead of pad(). For some reason this
test passes when run locally.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* add _nan_mask function and
associated unit tests; this function
is to be used to simplify reduction
operations involving np.nan elements
by using a mask with a ``where``
argument
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This implements cyclic support by adding `tp_traverse` to ufuns which may contain
a user provided object function (`np.frompyfunc`). Ufuncs that do not add this are not
added to the circular reference count tracking.
The ufunc does not need to implement `tp_clear` because it is an immutable object.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Turns out that this was relied upon downstream
We also add a setter for coeffs, so that augmented assignment does not both
change state and raise an exception suggesting state could not be changed.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Previously a single-field type would decay, which is undesirable.
The included test previously did not pass
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Replacing empty tuples with `None` is a bad idea, and just results in an API that is hard to consume - especially since the behavior was never documented.
This affects `get_names`, `get_names_flat`, and `get_fieldstructure`.
|
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Previously this would fail with `ValueError: could not assign tuple of length 2 to structure with 3 fields.`, now it raises `NotImplementedError`.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: allow arrays for start and stop in {lin,log,geom}space
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
And which failed with the change to linspace.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
(#12448)
* Review F401,F841,F842 flake8 errors (unused variables, imports)
* Review comments
* More tests in test_installed_npymath_ini
* Review comments
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* ENH: implement matmul on NDArrayOperatorsMixin
* MAINT: remove unnecessary pytest import
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: add back the multifield copy->view change
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #10409
Closes #11530
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT Use set litterals
|
| |/ / / / / |
|
|\ \ \ \ \ \
| | |/ / / /
| |/| | | | |
MAINT: Fixups to new functions in np.lib.recfunctions
|
| |/ / / / |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
BUG/ENH: Removed non-standard scaling of the covariance matrix and added option to disable scaling completely.
|
| | | | |
| | | | |
| | | | |
| | | | | |
disable scaling completely.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: add multi-field assignment helpers in np.lib.recfunctions
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Adds helper functions for the copy->view transition for multi-field
indexes. Adds `structured_to_unstructured`, `apply_along_fields`,
`assign_fields_by_name`, `require_fields`.
|
| | | | | | |
|
| |/ / / /
|/| | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
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
|
| | | | | | |
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: arg handling tests in histogramdd
|
| | | | | | |
|
| |/ / / /
|/| | | |
| | | | | |
* ENH: Improve support for pathlib.Path objects in more functions
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes gh-12263
We can't support generators with dispatch for ``__array_function__``.
|
| | | | |
| | | | |
| | | | | |
BUG: test and fix import linspace in index_tricks
|
|/ / / / |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
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
|