Skip to content

Commit beb37e9

Browse files
authored
Merge pull request #72 from wind-python/hotfix/#71
Fix access to renamed oedb table
2 parents 7e9c088 + 194a7b7 commit beb37e9

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

doc/whats_new.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ These are new features and improvements of note in each release
88
:local:
99
:backlinks: top
1010

11+
.. include:: whatsnew/v0-1-3.txt
1112
.. include:: whatsnew/v0-1-2.txt
1213
.. include:: whatsnew/v0-1-1.txt
1314
.. include:: whatsnew/v0-1-0.txt
1415
.. include:: whatsnew/v006.txt
15-
.. include:: whatsnew/v005.txt
16+
.. include:: whatsnew/v005.txt

doc/whatsnew/v0-1-3.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
v0.1.3 (September 2, 2019)
2+
++++++++++++++++++++++++++++++
3+
4+
Bug fixes
5+
#########
6+
* Acces to renamed oedb table has been fixed (`Issue #71 <https://github.com/wind-python/windpowerlib/issues/71>`_).
7+
8+
Contributors
9+
############
10+
* Birgit Schachler
11+
* Uwe Krien

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def read(fname):
1818
'windpowerlib': [os.path.join('data', '*.csv')]},
1919
long_description=read('README.rst'),
2020
zip_safe=False,
21-
install_requires=['pandas >= 0.19.1, < 0.25',
21+
install_requires=['pandas >= 0.19.1, < 0.26',
2222
'requests < 3.0'],
2323
extras_require={
2424
'dev': ['pytest', 'jupyter', 'sphinx_rtd_theme', 'nbformat']})

windpowerlib/wind_turbine.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def load_turbine_data_from_oedb():
360360
oep_url = 'http://oep.iks.cs.ovgu.de/'
361361
# location of data
362362
schema = 'supply'
363-
table = 'turbine_library'
363+
table = 'wind_turbine_library'
364364
# load data
365365
result = requests.get(
366366
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
@@ -394,9 +394,8 @@ def load_turbine_data_from_oedb():
394394
# add nominal power to power (coefficient) data frame
395395
curves_df = pd.merge(
396396
left=curves_df, right=turbine_data[['turbine_type',
397-
'installed_capacity']],
398-
on='turbine_type').set_index('turbine_type').rename(
399-
columns={'installed_capacity': 'nominal_power'})
397+
'nominal_power']],
398+
on='turbine_type').set_index('turbine_type')
400399
curves_df.to_csv(filename.format('{}s'.format(curve_type)))
401400

402401
return turbine_data

0 commit comments

Comments
 (0)