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

Update ancillary data loading functions #66

Merged
merged 8 commits into from
Mar 4, 2024
Merged

Update ancillary data loading functions #66

merged 8 commits into from
Mar 4, 2024

Conversation

robbibt
Copy link
Member

@robbibt robbibt commented Mar 4, 2024

This PR updates the two ancillary data loading functions load_aclum and load_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).

# 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'
Copy link
Member Author

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]
Copy link
Member Author

@robbibt robbibt Mar 4, 2024

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")

Copy link

github-actions bot commented Mar 4, 2024

For full integration test results, refer to the Tests directory README.

@robbibt robbibt requested a review from vnewey March 4, 2024 02:27
@vnewey vnewey merged commit cbdc270 into main Mar 4, 2024
@vnewey vnewey deleted the update_mask_funcs branch March 4, 2024 03:06
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.

2 participants