Skip to content

Conversation

@iosefa
Copy link
Owner

@iosefa iosefa commented Oct 16, 2025

  • Raise a ValueError if voxel_height is <= 0 for better input validation.
  • Update handling of empty integration ranges to return zero arrays instead of raising exceptions.
  • Add NaN propagation logic for columns with all-NaN values in the integration range.
  • Enhance tests to validate empty range handling and NaN propagation behavior.

- Raise a ValueError if `voxel_height` is <= 0 for better input validation.
- Update handling of empty integration ranges to return zero arrays instead of raising exceptions.
- Add NaN propagation logic for columns with all-NaN values in the integration range.
- Enhance tests to validate empty range handling and NaN propagation behavior.
@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2025

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

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pyforestscan/calculate.py 80.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
tests/test_calculate.py 100.00% <100.00%> (ø)
pyforestscan/calculate.py 86.80% <80.00%> (-0.97%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@iosefa iosefa merged commit 3632eeb into main Oct 16, 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.

3 participants