Skip to content

Commit 21cd208

Browse files
authored
Merge pull request #162 from cwasicki/wind
Add more WindConfig fields in microgrid config
2 parents 383a18e + 51ad13b commit 21cd208

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66

77
## Upgrading
88

9-
* Revert back to `v0.2.3` of the weather-client until the weather service is able to support `v0.13` of the weather API.
9+
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
1010

1111
## New Features
1212

13-
<!-- Here goes the main new features and examples or instructions on how to use them -->
13+
* Add fields to `WindConfig` for microgrid configuration.
1414

1515
## Bug Fixes
1616

17-
* Replaces multiple duplicated plot functions with a single reusable one.
18-
* Handle empty weather/reporting dataframes gracefully to avoid transformation errors. The "Solar Maintenance" notebook is updated accordingly.
17+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

src/frequenz/data/microgrid/config.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ class WindConfig:
137137
turbine_height: float | None = None
138138
"""Height of the wind turbine in meters."""
139139

140+
number_of_turbines: int = 1
141+
"""Number of wind turbines."""
142+
143+
hellmann_exponent: float | None = None
144+
"""Hellmann exponent for wind speed extrapolation. See: https://w.wiki/FMw9"""
145+
146+
longitude: float | None = None
147+
"""Geographic longitude of the wind turbine."""
148+
149+
latitude: float | None = None
150+
"""Geographic latitude of the wind turbine."""
151+
140152

141153
@dataclass(frozen=True)
142154
class BatteryConfig:

0 commit comments

Comments
 (0)