Skip to content

Commit 4deb7b7

Browse files
committed
hotfix pydantic config
1 parent a38973a commit 4deb7b7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/lib/validation/config/industry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class IndustryConfig(ConfigModel):
128128
},
129129
description="The fraction of high value chemicals (HVC) produced using chemical recycling.",
130130
)
131-
HVC_environment_sequestration_fraction: float = Field(
131+
HVC_environment_sequestration_fraction: float | dict[int, float] = Field(
132132
0.0,
133133
description="The fraction of high value chemicals (HVC) put into landfill resulting in additional carbon sequestration. The default value is 0.",
134134
)

scripts/lib/validation/config/renewable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class _WindResourceConfig(ConfigModel):
1717
"""Configuration for wind resource settings."""
1818

1919
method: str = Field("wind", description="A superordinate technology type.")
20-
turbine: str | dict[int, str] = Field(
20+
turbine: str | dict[int, str] | dict[int, dict] = Field(
2121
...,
2222
description="Specifies the turbine type and its characteristic power curve. Can be a string or a dictionary with years as keys which denote the year another turbine model becomes available.",
2323
)

scripts/lib/validation/config/sector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class SectorConfig(BaseModel):
434434
0.63,
435435
description="Share increase in energy demand in electric vehicles (EV) for each degree difference between the hot environment and the maximum temperature.",
436436
)
437-
bev_dsm: bool = Field(
437+
bev_dsm: bool | int = Field(
438438
True,
439439
description="Add the option for battery electric vehicles (BEV) to participate in demand-side management (DSM).",
440440
)

0 commit comments

Comments
 (0)