Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit a6a415e

Browse files
Make PV system dropout type hint optional (#297)
Make PV system dropout optional in config Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 03baa44 commit a6a415e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocf_datapipes/config/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def dropout_fraction_valid(cls, v):
156156
class SystemDropoutMixin(Base):
157157
"""Mixin class, to add independent system dropout"""
158158

159-
system_dropout_timedeltas_minutes: List[int] = Field(
159+
system_dropout_timedeltas_minutes: Optional[List[int]] = Field(
160160
None,
161161
description="List of possible minutes before t0 where data availability may start. Must be "
162162
"negative or zero. Each system in a sample is delayed independently from the other by "

ocf_datapipes/load/nwp/providers/excarta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Excarta Loading"""
2+
23
import numpy as np
34
import pandas as pd
45
import xarray as xr
5-
import datetime
66

77
from ocf_datapipes.load.nwp.providers.utils import open_zarr_paths
88

0 commit comments

Comments
 (0)