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

Exit when there is no valid imagery for any point #136

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

ejm714
Copy link
Collaborator

@ejm714 ejm714 commented Jan 6, 2024

Ran into an edge case where there is no valid imagery for any point (hit this when testing out a single point in a cloudy month). This PR adds code to log the error and the exit.

@ejm714 ejm714 requested a review from klwetstone January 6, 2024 01:36
Copy link

render bot commented Jan 6, 2024

Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0c3a28b) 75.0% compared to head (217e448) 75.0%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #136   +/-   ##
=====================================
  Coverage   75.0%   75.0%           
=====================================
  Files         12      12           
  Lines        860     863    +3     
=====================================
+ Hits         645     648    +3     
  Misses       215     215           
Files Coverage Δ
cyfi/data/features.py 51.3% <100.0%> (+1.3%) ⬆️

Copy link
Collaborator

@klwetstone klwetstone left a comment

Choose a reason for hiding this comment

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

@ejm714 Looks good to me! Just one question making sure our tests will continue to pass.

tests/test_cli.py Show resolved Hide resolved
@ejm714 ejm714 merged commit e737715 into main Jan 9, 2024
10 checks passed
@ejm714 ejm714 deleted the exit-when-no-valid-imagery branch January 9, 2024 19:09
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