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

Prevent float/int funkyness in hitlet processing #694

Merged
merged 1 commit into from May 16, 2022
Merged

Conversation

JoranAngevaare
Copy link
Member

What is the problem / what does the code in this PR do
The default method for create hitlets from hits returns bad results. Comparing ints and floats in numba is not recommendable, I suspect that the compare between them did not work well on this line.

Can you briefly describe how it works?
So now, lets just take the largest and smallest numbers in np.int64

Can you give a minimal working example (or illustrate with a figure)?
See the issue here:
afbeelding
And the difference between ints and floats (the default was np.inf) for the chunk_end
afbeelding

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 93.353% when pulling 2c54fad on hitlet_bounds into 6aa0a4d on master.

Copy link
Collaborator

@WenzDaniel WenzDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot

@WenzDaniel WenzDaniel merged commit 4969594 into master May 16, 2022
@WenzDaniel WenzDaniel deleted the hitlet_bounds branch May 16, 2022 11:57
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.

None yet

3 participants