mapme-initiative / mapme.biodiversity

Efficient analysis of spatial biodiversity datasets for global portfolios
https://mapme-initiative.github.io/mapme.biodiversity/
GNU General Public License v3.0
24 stars 7 forks source link

better handling of output checks for asset and portfolio modes #216

Closed goergen95 closed 7 months ago

goergen95 commented 7 months ago

This PR introduces an improved version of checking output from indicator functions. Different logics for processing and error checks are applied for asset and portfolio mode. Error messages are improved, and, if an issue is found, the backend now places NA values correctly.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (82c6ba4) 74.38% compared to head (1e44630) 74.60%.

Files Patch % Lines
R/calc_indicators.R 80.64% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #216 +/- ## ========================================== + Coverage 74.38% 74.60% +0.22% ========================================== Files 43 43 Lines 1819 1827 +8 ========================================== + Hits 1353 1363 +10 + Misses 466 464 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.