Skip to content

Commit f6bb0f4

Browse files
committed
Fix notebooks
1 parent e180b2f commit f6bb0f4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

doc/modelchain_example_notebook.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@
188188
"12 Enercon E-82/2350 True True\n",
189189
"13 Enercon E-82/3000 True True\n",
190190
"14 Enercon E-92/2350 True True\n",
191-
"15 Enercon E48/800 True True\n"
191+
"15 Enercon E/126/7500 True False\n",
192+
"16 Enercon E48/800 True True\n"
192193
]
193194
}
194195
],
@@ -256,7 +257,7 @@
256257
"DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): oep.iks.cs.ovgu.de:80\n",
257258
"DEBUG:urllib3.connectionpool:http://oep.iks.cs.ovgu.de:80 \"GET //api/v0/schema/model_draft/tables/openfred_windpower_powercurve/rows/ HTTP/1.1\" 301 438\n",
258259
"DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): openenergy-platform.org:80\n",
259-
"DEBUG:urllib3.connectionpool:http://openenergy-platform.org:80 \"GET /api/v0/schema/model_draft/tables/openfred_windpower_powercurve/rows/ HTTP/1.1\" 200 149329\n",
260+
"DEBUG:urllib3.connectionpool:http://openenergy-platform.org:80 \"GET /api/v0/schema/model_draft/tables/openfred_windpower_powercurve/rows/ HTTP/1.1\" 200 150623\n",
260261
"INFO:root:Data base connection successful.\n"
261262
]
262263
}
@@ -284,12 +285,13 @@
284285
"source": [
285286
"# specification of wind turbine where power coefficient curve is provided\n",
286287
"# by a csv file\n",
288+
"source = 'data/example_power_coefficient_curves.csv'\n",
287289
"dummy_turbine = {\n",
288290
" 'name': 'DUMMY 1', # turbine type as in file #\n",
289291
" 'hub_height': 100, # in m\n",
290292
" 'rotor_diameter': 70, # in m\n",
291293
" 'fetch_curve': 'power_coefficient_curve', # fetch cp curve #\n",
292-
" 'data_source': 'example_power_coefficient_curves.csv' # data source\n",
294+
" 'data_source': source # data source\n",
293295
"}\n",
294296
"# initialize WindTurbine object\n",
295297
"dummy_turbine = WindTurbine(**dummy_turbine)"

example/modelchain_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"source": [
286286
"# specification of wind turbine where power coefficient curve is provided\n",
287287
"# by a csv file\n",
288-
"source = 'data/example_coefficient_curves.csv'\n",
288+
"source = 'data/example_power_coefficient_curves.csv'\n",
289289
"dummy_turbine = {\n",
290290
" 'name': 'DUMMY 1', # turbine type as in file #\n",
291291
" 'hub_height': 100, # in m\n",

example/modelchain_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def initialize_wind_turbines():
135135
# by a csv file
136136
csv_file = os.path.join(os.path.dirname(__file__), 'data',
137137
'example_power_coefficient_curves.csv')
138-
# todo adapt in jupyter notebook!!!
139138
dummy_turbine = {
140139
'name': 'DUMMY 1', # turbine type as in file #
141140
'hub_height': 100, # in m

0 commit comments

Comments
 (0)