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 summary statistics table not producing correct outputs #1080

Closed
phargogh opened this issue Sep 10, 2022 · 0 comments · Fixed by #1083
Closed

HRA summary statistics table not producing correct outputs #1080

phargogh opened this issue Sep 10, 2022 · 0 comments · Fixed by #1083
Assignees
Labels
bug Something isn't working in progress This issue is actively being worked on
Milestone

Comments

@phargogh
Copy link
Member

Jade reported that the 3.12.0 version of HRA doesn't produce correct outputs for the percentages of risk classifications for HIGH, MEDIUM, and LOW (R_%{HIGH,MEDIUM,LOW}). I have confirmed that this is an issue on the Belize inputs that Jade sent me.

The summary statistics table function is pretty complicated and could be greatly simplified once natcap/pygeoprocessing#270 is implemented.

@phargogh phargogh added bug Something isn't working in progress This issue is actively being worked on labels Sep 10, 2022
@phargogh phargogh self-assigned this Sep 10, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 10, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 10, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 10, 2022
Adding this field seems right because it means we can make sure all 4 of
the fields add up to 100%. RE:natcap#1080
phargogh added a commit to phargogh/invest that referenced this issue Sep 10, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
Mostly just division by zero or missing keys. RE:natcap#1080
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Sep 15, 2022
phargogh added a commit to phargogh/invest that referenced this issue Oct 21, 2022
phargogh added a commit to phargogh/invest that referenced this issue Oct 21, 2022
@phargogh phargogh added this to the 3.12.1 milestone Dec 2, 2022
phargogh added a commit to phargogh/invest that referenced this issue Dec 14, 2022
phargogh added a commit to phargogh/invest that referenced this issue Dec 14, 2022
I wasn't being clear about which classification arrays were affecting
which records in the tests.  This commit changes that by renaming a few
array variables, clarifying which values are derived from which arrays,
and adding a helper function to clearly derive values from arrays.

RE:natcap#1080
phargogh added a commit to phargogh/invest that referenced this issue Dec 14, 2022
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