| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* BUG: Histogramdd breaks on big arrays in Windows
Resolved the issue with line change from int to np.intp in numpy/numpy/lib/histograms.py
* BUG: Histogramdd breaks on big arrays in Windows
Resolved the issue with line change from int to np.intp in numpy/numpy/lib/histograms.py
* Removed the binary files
* Update test_histograms.py
* Update test_histograms.py
* Update test_histograms.py
|
|
|
|
|
|
|
|
| |
In some cases, the replacement is clearly not what is intended,
in those (where setup was called explicitly), I mostly renamed
`setup` to `_setup`.
The `test_ccompile_opt` is a bit confusing, so left it right now
(this will probably fail)
|
|
|
|
|
|
| |
The normed keyword argument has been deprecated for a long time.
This removes it, replacing its position with the new density
argument.
|
| |
|
|
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An input such as
np.histogram(np.array([-2, 0, 127], dtype=np.int8), bins="auto")
would raise the exception
ValueError: Number of samples, -1, must be non-negative.
The problem was that the peak-to-peak value for the input array was
computed with the `ptp` method, which returned negative values for
signed integer arrays when the actual value was more than the
maximum signed value of the array's data type.
The fix is to use a peak-to-peak function that returns an
unsigned value for signed integer arrays.
Closes gh-14379.
|
|
|
|
|
|
| |
* DOC, MAINT: Misc. typo fixes
Found via `codespell`
|
| |
|
|\
| |
| | |
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
|
| |
|
| |
|
| |
|
|\
| |
| | |
TST: test invalid histogram range
|
| | |
|
|/ |
|
|
|
|
|
|
| |
* add a unit test for an uncovered code path
where a histogram array does not match the
shape of the provided array of weights
|
|
|
|
|
|
|
|
|
|
|
| |
Convert bool to uint at start, rather than attempt a XOR
Only check type against np.bool_
Refactor warnings check
|
|\
| |
| | |
BUG: Avoid signed overflow in histogram
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When dividing the range between first and last, the formula `(x - first) / (last - first)` is used, where `last >= first`
This falls apart if the types of these variables are signed integers, in which case overflow can occur.
The solution is to force the subtraction result to be unsigned.
This is a regression in 1.15.0
|
|\ \
| | |
| | | |
ENH: Add density argument to histogramdd.
|
| | |
| | |
| | |
| | | |
Fixes gh-4371
|
|\ \ \
| | | |
| | | | |
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
|
| | | |
| | | |
| | | |
| | | | |
Fixes #11426, which was introduced in #11323 and #11352
|
|\ \ \ \
| |/ / /
|/| / /
| |/ / |
TST: Show that histogramdd's normed argument is histogram's density
|
| |/
| |
| |
| | |
Relevant to gh-4371
|
|/
|
|
| |
Documenting this argument at such length gives it authenticity it does not deserve.
|
|\
| |
| | |
BUG: np.histogramdd loses precision on its inputs, leading to incorrect results
|
| |
| |
| |
| | |
This is due to gh-11022.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously a fuzzy rounded comparison was used for the rightmost bin of histogramdd.
It's not clear why this was done, and it resulted in surprising behavior.
This also removes the restriction that bin edges must be floats, and allows integer arrays to be passed (and returned)
Fixes gh-10864
|
|/
|
|
|
|
|
|
|
| |
User- and non-user-facing typos.
Some source typos fixes as well.
Found via `codespell`.
|
|
|
| |
Now falls back on sturges estimator when the IQR is zero
|
|
|
|
|
| |
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
|
|
|
|
|
|
|
|
|
|
|
| |
Use standard pytest markers everywhere in the numpy tests. At this point
there should be no nose dependency. However, nose is required to test
the legacy decorators if so desired.
At this point, numpy test cannot be run in the way with runtests, rather
installed numpy can be tested with `pytest --pyargs numpy` as long as
that is not run from the repo. Run it from the tools directory or some
such.
|
|
|
|
|
| |
Fixes #10183
Documentation is copied from np.histogram
|
|
|
|
|
|
|
|
| |
Fixes #8123, closes #9189, fixes #10319
This is a workaround to #10322, not a fix for it.
Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
|
|
|
|
| |
Currently only supported for explicit bins
|
|
|
|
|
| |
Fixes gh-7503
Closes gh-8984
|
|
|
|
| |
Closes gh-7864
|
|
800 self-contained lines are easily enough to go in their own file, as are the 500 lines of tests.
For compatibility, the names are still available through `np.lib.function_base.histogram` and `from np.lib.function_base import *`
For simplicity of imports, all of the unqualified `np.` names are now qualified
|