-
Notifications
You must be signed in to change notification settings - Fork 30
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
[1pt] PR: Remove warning messages #1224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grep -H -r -i -n "warning" ./logs/ > ./all_warnings_from_logs.log shows tons of warnings but this particular one is gone. :)
(sorry.. didn't mean to sound cheeky. It all helps)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-tested for new changes and it is good
Addresses warnings to reduce output messages. Closes #1223.
Changes
src/
adjust_thalweg_lateral.py
: fixes number typesrc/delineate_hydros_and_produce_HAND.sh
: removes division by zero warninggetRasterInfoNative.py
: addsgdal.UseExceptions()
Testing
I ran
fim_pipeline.sh
the REM grids were identical. Evaluation results fromsynthesize_test_cases.py
were also identical. Output from the specific modules is below.src/adjust_thalweg_lateral.py
Before
After
src/delineate_hydros_and_produce_HAND.sh
Before
After
src/getRasterInfoNative.py
Currently: without either
gdal.UseExceptions()
orgdal.DontUseExceptions()
With
gdal.UseExceptions()
(this PR):With
gdal.DontUseExceptions()
:Deployment Plan (For developer use)
How does the changes affect the product?
Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.
[_pt] PR: <description>
dev
branch (the default branch), you have a descriptive Feature Branch name using the format:dev-<description-of-change>
(e.g.dev-revise-levee-masking
)dev
branchpre-commit
hooks were run locally/foss_fim/
, run:pytest unit_tests/
)4.x.x.x
Merge Checklist (For Technical Lead use only)