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

Fix case sensitivity for HRA criteria and info tables stressors and habitats #1478

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

dcdenu4
Copy link
Member

@dcdenu4 dcdenu4 commented Dec 14, 2023

Description

Fixes a case sensitivity issue where the criteria table and info table were not handling casefold the same. Now the criteria table stressors and habitats are also all lowercased along with the constant RESILIENCE stressor.

Added different case to the tests to cover this.

Also removed some unused constants defined at the top of HRA.

Fixes #1467

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
    - [ ] Updated the user's guide (if needed)
    - [ ] Tested the Workbench UI (if relevant)

@dcdenu4 dcdenu4 requested review from phargogh and emlys December 14, 2023 15:31
@dcdenu4 dcdenu4 added this to the 3.14.1 milestone Dec 14, 2023
Copy link
Member

@emlys emlys left a comment

Choose a reason for hiding this comment

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

thanks @dcdenu4!

Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

Looks great @dcdenu4 , thank you!

@phargogh phargogh merged commit 3daf533 into natcap:main Dec 14, 2023
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.

HRA stressor comparison bug on sample data
3 participants