Skip to content

Allow users to specify forecast unit variables #268

@seabbs

Description

@seabbs

The problem

At the moment the forecast unit is determined automagically within the package and then reported to the user. This works quite well a lot of the time but can lead to some odd edge cases when data changes or when the user is not paying attention. In my own usage I tend to have scoring that initially doesn't work and then have to use check_forecasts() a few times until I get data in the format I want/expect it to be.

Proposed solution

Allow passing forecast_unit explicitly to score() and check_forecasts(). If this is missing default the current behaviour and report the assumed forecast unit when in verbose mode. This would not introduce breaking changes though an ideal solution would add discussion and examples of this usage to the documentation.

Impacts on the rest of the package.

At the moment the automagical determination of forecast unit happens in multiple places. It would make sense to make this happen just once in top-level functions and then require the unit to be passed to lower-level functions (or to be optionally passed as outlined here)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions