Skip to content

fix: treat zero cloud cover as a supplied bound - #126

Open
Shubham-Padkonde wants to merge 1 commit into
nasa:developfrom
Shubham-Padkonde:fix/zero-cloud-cover
Open

Shubham-Padkonde wants to merge 1 commit into
nasa:developfrom
Shubham-Padkonde:fix/zero-cloud-cover

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

GranuleQuery().cloud_cover(0, 0) currently raises instead of creating a filter for cloud-free granules. The same truthiness checks also skip range/type validation when either bound is zero.

Distinguish omitted bounds from numeric zero. Preserve empty-string open bounds and validate pairs that contain zero. Regression coverage includes exact zero, open bounds ending/starting at zero, reversed bounds, and invalid values paired with zero.

Validation: full suite passes (133 tests and 7 subtests). Seven regression cases fail before the fix. git diff --check passes.

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.

1 participant