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

snippers use different arithmetics than cooler for determining bins from coordinates #446

Open
Phlya opened this issue May 31, 2023 · 0 comments
Assignees
Labels

Comments

@Phlya
Copy link
Member

Phlya commented May 31, 2023

I think the logic here is wrong, compared to cooler:

lo1, hi1 = (s1 // binsize) - offset1, (e1 // binsize) - offset1

in case of the end not falling exactly on the bin edge, it should include the rightmost partially covered bin, but it doesn't.
Screenshot 2023-05-31 at 14 32 02

@gfudenberg gfudenberg added the bug label Oct 9, 2023
@agalitsyna agalitsyna self-assigned this Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants