Skip to content

Commit 3fdc7f1

Browse files
Birgit SchachlerBirgit Schachler
authored andcommitted
Rename height dictionary in example
1 parent ae942d7 commit 3fdc7f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/basic_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def read_weather_data(filename, datetime_column='time_index',
6363
weather = read_weather_data('weather.csv')
6464

6565
# Specification of the weather data set CoastDat2 (example data)
66-
coastDat2 = {
6766
'dhi': 0,
6867
'dirhi': 0,
68+
data_height = {
6969
'pressure': 0,
7070
'temp_air': 2,
7171
'v_wind': 10,
@@ -102,10 +102,10 @@ def read_weather_data(filename, datetime_column='time_index',
102102

103103
# Calculate turbine power output
104104
mc_e126 = modelchain.ModelChain(e126, **modelchain_data).run_model(
105-
weather, coastDat2)
105+
weather, data_height)
106106
e126.power_output = mc_e126.power_output
107107
mc_v90 = modelchain.ModelChain(v90, **modelchain_data).run_model(
108-
weather, coastDat2)
108+
weather, data_height)
109109
v90.power_output = mc_v90.power_output
110110

111111
# Plot turbine power output

0 commit comments

Comments
 (0)