-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update ancillary data loading functions #66
Conversation
# Commit validation results produced by integration tests back into repo | ||
- name: Commit validation results into repository | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: github.event_name != 'release' | ||
if: github.event_name == 'pull_request' |
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.
This will hopefully prevent the workflow from commiting a second set of identical validation results when we merge PRs to main
. Validation results should already have been committed to the PR branch before this point, so no need to do it twice.
@@ -32,7 +32,7 @@ on: | |||
- 'codecov.yaml' | |||
|
|||
release: | |||
types: [created, edited, published] | |||
types: [edited, published] |
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.
Removing "created" so that the workflow doesn't run twice whenever we make a Github release (apparently every "published" release is also "created")
For full integration test results, refer to the Tests directory README. |
This PR updates the two ancillary data loading functions
load_aclum
andload_topobathy
so that both functions now consistently return boolean mask array.In the case of
load_topobathy
, this function now applies the elevation threshold internally, as well as an optional mask cleanup step that can be used to dilate the good data area (important to prevent losing good data in areas where the DEM is inaccurate).Have also updated the two notebooks, as well as a tiny change to prevent Github Actions from commiting validation results when we merge a PR to
main
(this should have already happened on the branch during the pull request tests).