epiforecasts / scoringutils

Utilities for Scoring and Assessing Predictions
https://epiforecasts.io/scoringutils/
Other
48 stars 20 forks source link

Issue #447 - Add input checks to functions #748

Closed nikosbosse closed 5 months ago

nikosbosse commented 5 months ago

Description

As mentioned in #447, a few functions currently lack input checks. This PR adds input checks to various functions. Notable changes:

To avoid another mega-PR, I looked at all functions up to and including metrics-validate.R. I'll do the rest in a second PR.

Reminder for future me: look at docs for quantile_score() once again and see whether arguments are documented correctly.

Checklist

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.30%. Comparing base (a8ae1d0) to head (c2e0d49).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #748 +/- ## ========================================== + Coverage 95.27% 95.30% +0.02% ========================================== Files 21 21 Lines 1588 1596 +8 ========================================== + Hits 1513 1521 +8 Misses 75 75 ```

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