Skip to content

Fixed bug where division lead to nan or inf values #33

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

Conversation

btschwertfeger
Copy link
Owner

@btschwertfeger btschwertfeger commented Apr 17, 2023

Summary

Fixed the bug described in #32 by adding a function to ensure that the division will work and return zero for 0/n and the numerator times the max_scaling_factor if n/0.

@btschwertfeger btschwertfeger added the Bug Something isn't working label Apr 17, 2023
@btschwertfeger btschwertfeger added this to the v1.0.1 milestone Apr 17, 2023
@btschwertfeger btschwertfeger self-assigned this Apr 17, 2023
@btschwertfeger btschwertfeger marked this pull request as ready for review April 17, 2023 15:35
@btschwertfeger btschwertfeger merged commit 8ad7bb9 into master Apr 17, 2023
@btschwertfeger btschwertfeger deleted the 32-multiplicative-quantile-delta-mapping-is-not-applying-scaling-where-the-delta-is-infinite branch April 17, 2023 15:38
@btschwertfeger btschwertfeger restored the 32-multiplicative-quantile-delta-mapping-is-not-applying-scaling-where-the-delta-is-infinite branch April 17, 2023 16:15
@btschwertfeger btschwertfeger deleted the 32-multiplicative-quantile-delta-mapping-is-not-applying-scaling-where-the-delta-is-infinite branch April 17, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiplicative Quantile Delta Mapping is not applying scaling where the delta is infinite
1 participant