Skip to content
New issue

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

fix: (better) error when filling an int with a float #876

Merged
merged 3 commits into from Sep 11, 2023

Conversation

henryiii
Copy link
Member

@henryiii henryiii commented Aug 29, 2023

Fix #843.

Currently, only single fills error when using a float on an int axis - this expands the error to arrays too. It's important to error since -.9 and .9 both become 0 when converting from floats to ints. And explicit is better than implicit.

@github-actions github-actions bot added the needs changelog Might need a changelog entry label Aug 29, 2023
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii henryiii changed the title fix: fix int fill with float rounding issue fix: (better) error when filling an int with a float Sep 11, 2023
@henryiii henryiii merged commit 0a8e283 into develop Sep 11, 2023
14 checks passed
@henryiii henryiii deleted the henryiii/fix/int branch September 11, 2023 16:05
@henryiii henryiii removed the needs changelog Might need a changelog entry label Sep 12, 2023
matthewfeickert added a commit to scikit-hep/hist that referenced this pull request Sep 13, 2023
* Use the same information as provided by boost-histogram in
  scikit-hep/boost-histogram#876
henryiii pushed a commit to scikit-hep/hist that referenced this pull request Sep 13, 2023
* Use the same information as provided by boost-histogram in
scikit-hep/boost-histogram#876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Filling Integer Axis with doubles is buggy
1 participant