validate_horizons_present#
- openstef_core.datasets.validate_horizons_present(dataset: TimeSeriesDataset, horizons: list[LeadTime]) None[source]#
Validate that the specified forecast horizons are present in the dataset.
- Parameters:
dataset (
TimeSeriesDataset) – The time series dataset to validate.horizons (
list[LeadTime]) – List of forecast horizons to check for presence in the dataset.dataset
horizons
- Raises:
TimeSeriesValidationError – If any of the specified horizons are not present.
- Return type:
None