We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In some cases SparselyBin returns inconsistent values of bin_edges / bin_entries if binWidth is float and low/high are given.
For example following code:
import numpy as np from histogrammar.primitives.sparselybin import SparselyBin values = np.array([0.114, 146.756, 302.333, 417.022, 720.324]) low, high = 314.0, 332.0 hist = SparselyBin(binWidth=10.1) hist.fill.numpy(values) edges = hist.bin_edges(low=low, high=high) entries = hist.bin_entries(low=low, high=high) print(f"edges={edges}") print(f"entries={entries}") assert len(edges) == len(entries) + 1
Gives assertion error:
edges=[313.1 319.83333333 326.56666667 333.3 ] entries=[0. 0.] Traceback (most recent call last): File "a.py", line 15, in <module> assert len(edges) == len(entries) + 1 AssertionError
This error is most likely related to the issue in popmon: ing-bank/popmon#244
The text was updated successfully, but these errors were encountered:
fix for issue histogrammar#60 (invalid bin_edges for SparselyBin)
9389f41
1754a4c
c78788d
fix for issue #60 (invalid bin_edges for SparselyBin)
5cd418f
0c91545
No branches or pull requests
In some cases SparselyBin returns inconsistent values of bin_edges / bin_entries if binWidth is float and low/high are given.
For example following code:
Gives assertion error:
This error is most likely related to the issue in popmon: ing-bank/popmon#244
The text was updated successfully, but these errors were encountered: