Skip to content

Commit

Permalink
Merge pull request #2116 from ASFHyP3/legacy-cruft
Browse files Browse the repository at this point in the history
remove vestiges of legacy dem implementation
  • Loading branch information
asjohnston-asf authored Feb 29, 2024
2 parents 2283ede + bbb08aa commit d6d136e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion apps/api/src/hyp3_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from hyp3_api.util import get_granules

DEM_COVERAGE = None
DEM_COVERAGE_LEGACY = None


class GranuleValidationError(Exception):
Expand Down
8 changes: 0 additions & 8 deletions tests/test_api/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ def test_has_sufficient_coverage():
poly = rectangle(40.1, 40, -126, -125.000140)
assert not validation.has_sufficient_coverage(poly)

# minimum sufficient legacy coverage off the coast of Eureka, CA
poly = rectangle(40.1, 40, -126, -124.845)
assert validation.has_sufficient_coverage(poly)

# almost minimum sufficient legacy coverage off the coast of Eureka, CA
poly = rectangle(40.1, 40, -126, -124.849)
assert validation.has_sufficient_coverage(poly)

# polygon in missing tile over Gulf of California
poly = rectangle(26.9, 26.1, -110.1, -110.9)
assert not validation.has_sufficient_coverage(poly)
Expand Down

0 comments on commit d6d136e

Please sign in to comment.