Skip to content

Commit

Permalink
Fix notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineHaas committed Jan 17, 2019
1 parent e180b2f commit f6bb0f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions doc/modelchain_example_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@
"12 Enercon E-82/2350 True True\n",
"13 Enercon E-82/3000 True True\n",
"14 Enercon E-92/2350 True True\n",
"15 Enercon E48/800 True True\n"
"15 Enercon E/126/7500 True False\n",
"16 Enercon E48/800 True True\n"
]
}
],
Expand Down Expand Up @@ -256,7 +257,7 @@
"DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): oep.iks.cs.ovgu.de:80\n",
"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",
"DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): openenergy-platform.org:80\n",
"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",
"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",
"INFO:root:Data base connection successful.\n"
]
}
Expand Down Expand Up @@ -284,12 +285,13 @@
"source": [
"# specification of wind turbine where power coefficient curve is provided\n",
"# by a csv file\n",
"source = 'data/example_power_coefficient_curves.csv'\n",
"dummy_turbine = {\n",
" 'name': 'DUMMY 1', # turbine type as in file #\n",
" 'hub_height': 100, # in m\n",
" 'rotor_diameter': 70, # in m\n",
" 'fetch_curve': 'power_coefficient_curve', # fetch cp curve #\n",
" 'data_source': 'example_power_coefficient_curves.csv' # data source\n",
" 'data_source': source # data source\n",
"}\n",
"# initialize WindTurbine object\n",
"dummy_turbine = WindTurbine(**dummy_turbine)"
Expand Down
2 changes: 1 addition & 1 deletion example/modelchain_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"source": [
"# specification of wind turbine where power coefficient curve is provided\n",
"# by a csv file\n",
"source = 'data/example_coefficient_curves.csv'\n",
"source = 'data/example_power_coefficient_curves.csv'\n",
"dummy_turbine = {\n",
" 'name': 'DUMMY 1', # turbine type as in file #\n",
" 'hub_height': 100, # in m\n",
Expand Down
1 change: 0 additions & 1 deletion example/modelchain_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def initialize_wind_turbines():
# by a csv file
csv_file = os.path.join(os.path.dirname(__file__), 'data',
'example_power_coefficient_curves.csv')
# todo adapt in jupyter notebook!!!
dummy_turbine = {
'name': 'DUMMY 1', # turbine type as in file #
'hub_height': 100, # in m
Expand Down

0 comments on commit f6bb0f4

Please sign in to comment.