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

Divide by zero error handling in map.py #486

Open
ts4051 opened this issue Apr 16, 2018 · 1 comment
Open

Divide by zero error handling in map.py #486

ts4051 opened this issue Apr 16, 2018 · 1 comment

Comments

@ts4051
Copy link
Contributor

ts4051 commented Apr 16, 2018

In map.py functions such as compare, there are cases where one map is divided by another. If the denominator map has any bins with 0 entries, this fails with a divide by zero error.

This is handled for the case of numpy arrays, but when the bins have uncertainties the error appears due to lack of robust support for divide by zero in the uncertainties module.

@thehrh
Copy link
Contributor

thehrh commented Apr 16, 2018

cf #479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants