epiforecasts / scoringutils

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

get_forecast_type fails if you layer a new class on top of the forecast_type class #952

Closed seabbs closed 3 weeks ago

seabbs commented 3 weeks ago

https://github.com/epiforecasts/scoringutils/blob/b370557e46961ec60d72a80ec195d139fc62d0d3/R/get-forecast-type.R#L6

For example in qra. To avoid this we should instead search the class string for the forecast type