Skip to content

Comments

calculate: handle empty integration range in canopy cover calculation#38

Merged
iosefa merged 1 commit intomainfrom
bug/zero-cover
Oct 9, 2025
Merged

calculate: handle empty integration range in canopy cover calculation#38
iosefa merged 1 commit intomainfrom
bug/zero-cover

Conversation

@iosefa
Copy link
Owner

@iosefa iosefa commented Oct 9, 2025

  • Return zero array when integration range is empty (e.g., min_height >= max_height).
  • Update logic to compute effective max height.
  • Add tests for empty integration ranges to ensure correct behavior.

- Return zero array when integration range is empty (e.g., min_height >= max_height).
- Update logic to compute effective max height.
- Add tests for empty integration ranges to ensure correct behavior.
@iosefa iosefa self-assigned this Oct 9, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
pyforestscan/calculate.py 87.76% <100.00%> (+0.62%) ⬆️
tests/test_calculate.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@iosefa iosefa merged commit 3fa91ce into main Oct 9, 2025
3 checks passed
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