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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the axis.index() function returns incorrect index when passed particular integer values.
Steps to reproduce Running under linux (fedora 35, python 3.6.10)
>>> hist.__version__ '2.6.2' >>> a=hist.axis.Regular(50,0,50) >>> [(i,a.index(i)) for i in range(28,31) ] [(28, 28), (29, 28), (30, 30)]
I expect to obtain (29,29) as the 2nd entry as any other integer in the range 0..50 . With decimals, it works as expected :
(29,29)
>>> [(i,a.index(i+0.001)) for i in range(28,31) ] [(28, 28), (29, 29), (30, 30)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
the axis.index() function returns incorrect index when passed particular integer values.
Steps to reproduce
Running under linux (fedora 35, python 3.6.10)
I expect to obtain
(29,29)
as the 2nd entry as any other integer in the range 0..50 .With decimals, it works as expected :
The text was updated successfully, but these errors were encountered: