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

Fix Raster.get_stats when an empty inlier_mask is passed #663

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vschaffn
Copy link
Contributor

@vschaffn vschaffn commented Mar 7, 2025

Resolves #662.

Changes

  • Adds robustness in Percentage_valid_inlier_ points when total_inlier_counts is 0 to avoid divided by 0.
  • Fixes rmse (the sum was missing).

Tests

  • Adds a test with an empty inlier mask, ensure no error and valid_inlier_count, total_inlier_count, Percentage_valid_inlier_points, Percentage_inlier_points equal 0.
  • Adds a check to ensure that value types in stats are int or float.

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.

Error in Raster.get_stats when an empty inlier_mask is passed
1 participant