Skip to content

Commit 60a588c

Browse files
Bug/creation time filter (#270)
* filter more in the pass * add test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add optional --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 34a3433 commit 60a588c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nowcasting_datamodel/models/forecast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import logging
1010
from datetime import datetime
11-
from typing import List
11+
from typing import List, Optional
1212

1313
import numpy as np
1414
from pydantic import Field, PrivateAttr, validator
@@ -306,7 +306,7 @@ class ForecastValue(EnhancedBaseModel):
306306
..., ge=0, description="The forecasted value in MW"
307307
)
308308

309-
expected_power_generation_normalized: float = Field(
309+
expected_power_generation_normalized: Optional[float] = Field(
310310
None, ge=0, description="The forecasted value divided by the gsp capacity [%]"
311311
)
312312

0 commit comments

Comments
 (0)