epiforecasts / scoringutils

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

issue #827 - Improve error handling for wis() #859

Closed nikosbosse closed 1 month ago

nikosbosse commented 2 months ago

Description

This PR closes #827.

As discussed in #827, wis() didn't give a very informative error when there were no valid quantiles left. This PR changes quantile_to_interval_dataframe to throw an error when there are no valid intervals. This function is an internal function and I think you'd never want it to succeed if it wasn't able to produce a single valid forecast interval.

Checklist