-
Notifications
You must be signed in to change notification settings - Fork 29
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: Clean up Python files in FIM pipeline #1382
Merged
Merged
+180
−126
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mluck
added
bug
Something isn't working
refactoring
Refacting code to obtain the same result
High Priority
labels
Dec 19, 2024
mluck
changed the title
WIP [1pt] PR: Clean up Python files in FIM pipeline
[1pt] PR: Clean up Python files in FIM pipeline
Dec 27, 2024
RobHanna-NOAA
previously approved these changes
Dec 27, 2024
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.
Looks good. Did a fair bit of testing with FIM pipeline and alpha testing. It did not fix the segmentation error but that was expected. Either way, this is an imrovement. I did not explicitly test evalate_crosswalk.py or pixel_counter.py
This was
linked to
issues
Jan 3, 2025
…into dev-cleanup-gdal
…tion-mapping into dev-cleanup-gdal
CarsonPruitt-NOAA
approved these changes
Jan 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
High Priority
Ready_to_Merge
refactoring
Refacting code to obtain the same result
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cleans up Python files within
delineate_hydros_and_produce_HAND.sh
to improve performance, especially memory management, including removing unused imports, deleting object references when objects are no longer needed, and removing GDAL from thefim_process_unit_wb.sh
step of FIM pipeline. Contributes to #1351 and #1376.Changes
data/create_vrt_file.py
andtools/pixel_counter.py
: Removes unused importsrc/
accumulate_headwaters.py
,add_crosswalk.py
,adjust_thalweg_lateral.py
,filter_catchments_and_add_attributes.py
,heal_bridges_osm.py
,make_rem.py
,make_stages_and_catchlist.py
,mitigate_branch_outlet_backpool.py
,reachID_grid_to_vector_points.py
,split_flows.py
,unique_pixel_and_allocation.py
: Deletes objects no longer in usedelineate_hydros_and_produce_HAND.sh
,run_by_branch.sh
,run_unit_wb.sh
: Updates argumentsgetRasterInfoNative.py
: Refactors inrasterio
(removedgdal
)tools/evaluate_crosswalk.py
: Deletes objects no longer in useTesting
Ran
fim_pipeline.sh -o -jh 2 -jb 7 -n dev-cleanup-gdal -u "03100204 12090301"
on my EC2.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 locally4.x.x.x
Merge Checklist (For Technical Lead use only)