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

HRA outputs always high-risk when E/C pairs are entirely 0 for a habitat #1250

Closed
phargogh opened this issue Mar 16, 2023 · 1 comment · Fixed by #1251
Closed

HRA outputs always high-risk when E/C pairs are entirely 0 for a habitat #1250

phargogh opened this issue Mar 16, 2023 · 1 comment · Fixed by #1251
Assignees
Labels
bug Something isn't working in progress This issue is actively being worked on

Comments

@phargogh
Copy link
Member

A user on the forums (link to private convo with @phargogh and @davemfish ) has an interesting setup for their run where all of the criteria for all stressors affecting a single habitat are being ignored by setting those table values to 0. This is resulting in some invalid values (numpy WARNINGs from divide-by-zero), which I suspect is then throwing off the results.

@phargogh phargogh added bug Something isn't working in progress This issue is actively being worked on labels Mar 16, 2023
@phargogh phargogh self-assigned this Mar 16, 2023
phargogh added a commit to phargogh/invest that referenced this issue Mar 16, 2023
@phargogh
Copy link
Member Author

Well this is a fun case! From the user's exposure/consequence table:
Screenshot 2023-03-16 at 12 27 02 PM

No wonder there's a division by zero ... I didn't think the user would request that all pairs be skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress This issue is actively being worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant