Skip to content

Commit 41973fc

Browse files
committed
Merge branch 'dev' into turbine_library_for_0.2.0
2 parents 95d79ed + 0aeee7b commit 41973fc

File tree

9 files changed

+111
-31
lines changed

9 files changed

+111
-31
lines changed

doc/model_description.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ mean wind efficiency curve.
5454
:alt: Wind efficiency curves
5555
:align: center
5656

57-
The second option of considering wake losses is applying them to power curves by reducing the power values
57+
The second option to consider wake losses is to apply them to power curves by reducing the power values
5858
by a constant or on a wind speed depending wind farm efficiency (see :py:func:`~.wake_losses_to_power_curve`).
59-
Applying the wind farm efficiency (curve) to power curves instead of to feed-in time series has the advantage that the
60-
power curves can further be aggregated to achieve turbine cluster power curves (see :py:class:`~.wind_turbine_cluster.WindTurbineCluster`).
59+
Applying the wind farm efficiency (curve) to power curves instead of feed-in time series has the advantage that the
60+
power curves can further be aggregated to obtain turbine cluster power curves (see :py:class:`~.wind_turbine_cluster.WindTurbineCluster`).
6161

6262
Smoothing of power curves
6363
=========================

doc/whatsnew/v0-1-2.txt

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
1-
v0.1.2 ()
1+
v0.1.2 (June 24, 2019)
22
++++++++++++++++++++++++++++++
33

44
New features
55
############
6-
* new attribute nominal_power in WindFarm and WindTurbineCluster classes (PR #53)
6+
* new attribute `nominal_power` in :class:`~windpowerlib.wind_farm.WindFarm` and :class:`~windpowerlib.wind_turbine_cluster.WindTurbineCluster` classes (PR #53)
7+
* use properties and setters for `nominal_power` and `installed_power` in :class:`~windpowerlib.wind_farm.WindFarm` and :class:`~windpowerlib.wind_turbine_cluster.WindTurbineCluster` classes
8+
* made windpowerlib work offline: added csv files containing turbine data from `OpenEnergy Database (oedb) <https://openenergy-platform.org/dataedit/>`_ to the repository for offline usage (PR #52)
9+
710

811
Bug fixes
912
#########
10-
* fix issue with pandas Multiindex labels and codes attributes (PR #51)
13+
* fixed issue with pandas Multiindex labels and codes attributes (PR #51)
1114

1215
Other changes
1316
#############
14-
* Made windpowerlib work offline: turbine data from oedb is stored in csv files for offline usage (PR #52)
15-
* Made :py:func:`~windpowerlib.wind_turbine.get_turbine_types` also accessible via `get_turbine_types()` --> from windpowerlib import get_turbine_types
16-
* Added kwargs in init of wind turbine, wind farm, wind turbine cluster
17-
* We are working with deprecation warnings to draw our user's attention to important changes (PR #53).
17+
* made :py:func:`~windpowerlib.wind_turbine.get_turbine_types` also accessible via `get_turbine_types()` --> from windpowerlib import get_turbine_types
18+
* added kwargs in init of :class:`~windpowerlib.wind_turbine.WindTurbine`, :class:`~windpowerlib.wind_farm.WindFarm` and :class:`~windpowerlib.wind_turbine_cluster.WindTurbineCluster`
19+
* we are working with deprecation warnings to draw our user's attention to important changes (PR #53)
1820

1921
Deprecations
2022
############
21-
* installed_power is deprecated, use nominal_power instead.
23+
**wind_farm and wind_turbine_cluster:**
24+
25+
* Parameter coordinates is deprecated. In the future the parameter can only be set after instantiation of WindFarm object.
26+
* installed_power is deprecated, use nominal_power instead
27+
28+
**wind_turbine:**
29+
30+
* Parameters name, data_source and fetch_curve are deprecated. The parameter name will be renamed to turbine_type. Data source and fetching will be defined by the parameters power_coefficient_curve, power_curve and nominal_power in the future.
31+
* Parameter coordinates is deprecated. In the future the parameter can only be set after instantiation of WindTurbine object.
32+
33+
**power_curves:**
34+
2235
* wake_losses_model is deprecated, will be defined by the type of wind_farm_efficiency
2336

2437
Contributors
2538
############
2639
* Sabine Haas
2740
* Birgit Schachler
41+
* Uwe Krien

doc/whatsnew/v0-2-0.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Other changes
2929
* Restructured csv reading for offline usage of windpowerlib. The nominal power of wind turbines is now saved to a separate file.
3030

3131

32+
Deprecations
33+
############
34+
3235
Contributors
3336
############
3437
* Sabine Haas

example/modelchain_example.ipynb

Lines changed: 75 additions & 12 deletions
Large diffs are not rendered by default.

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def read(fname):
77

88

99
setup(name='windpowerlib',
10-
version='0.1.2dev',
10+
version='0.2.0dev',
1111
description='Creating time series of wind power plants.',
1212
url='http://github.com/wind-python/windpowerlib',
1313
author='oemof developer group',
@@ -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',
22-
'requests'],
21+
install_requires=['pandas >= 0.19.1, < 0.25',
22+
'requests < 3.0'],
2323
extras_require={
24-
'dev': ['sphinx_rtd_theme', 'pytest']})
24+
'dev': ['pytest', 'jupyter', 'sphinx_rtd_theme', 'nbformat']})

windpowerlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__copyright__ = "Copyright oemof developer group"
22
__license__ = "GPLv3"
3-
__version__ = '0.1.2dev'
3+
__version__ = '0.2.0dev'
44

55
from windpowerlib.wind_turbine import WindTurbine
66
from windpowerlib.wind_farm import WindFarm

windpowerlib/data/oedb_power_coefficient_curves.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.2,4.5,5.0,5.2,5.5,6.0,6.2,6.5,7.0,7.5,8.0,8.1,8.5,8.8,9.0,9.5,10.0,10.2,10.5,11.0,11.1,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,26.0
1+
turbine_type,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.2,4.5,5.0,5.2,5.5,6.0,6.2,6.5,7.0,7.5,8.0,8.1,8.5,8.8,9.0,9.5,10.0,10.2,10.5,11.0,11.1,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,26.0
22
E-141/4200,,,0.0,,0.29,,0.4,,0.42,,,0.44,,,0.45,,,0.45,,0.44,,,,0.41,,0.36,,,0.31,,,0.25,,0.2,,0.16,,0.13,,0.11,,0.09,,0.08,,0.06,,0.05,,0.05,,0.04,,0.04,,0.03,,0.03,
33
E-126/4200,,,0.0,,0.0,,0.28,,0.37,,,0.41,,,0.44,,,0.45,,0.45,,,,0.43,,0.4,,,0.35,,,0.3,,0.24,,0.2,,0.16,,0.13,,0.11,,0.09,,0.08,,0.07,,0.06,,0.05,,0.04,,0.04,,0.03,
44
E-101/3500,,,0.0,,0.08,,0.28,,0.37,,,0.41,,,0.44,,,0.46,,0.47,,,,0.47,,0.46,,,0.43,,,0.38,,0.32,,0.26,,0.21,,0.17,,0.15,,0.12,,0.1,,0.09,,0.08,,0.07,,0.06,,0.05,,0.05,

windpowerlib/data/oedb_power_curves.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.2,4.5,5.0,5.2,5.5,6.0,6.2,6.5,7.0,7.5,8.0,8.1,8.5,8.8,9.0,9.5,10.0,10.2,10.5,11.0,11.1,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,31.0,32.0
1+
turbine_type,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.2,4.5,5.0,5.2,5.5,6.0,6.2,6.5,7.0,7.5,8.0,8.1,8.5,8.8,9.0,9.5,10.0,10.2,10.5,11.0,11.1,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,31.0,32.0
22
E-141/4200,,,0.0,,22.0,,104.0,,260.0,,,523.0,,,920.0,,,1471.0,,2151.0,,,,2867.0,,3481.0,,,3903.0,,,4119.0,,4196.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,,,,,,,,,,,
33
E-126/4200,,,0.0,,0.0,,58.0,,185.0,,,400.0,,,745.0,,,1200.0,,1790.0,,,,2450.0,,3120.0,,,3660.0,,,4000.0,,4150.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,4200.0,,,,,,,,,,,,
44
E-101/3500,,,0.0,,3.0,,37.0,,116.0,,,253.0,,,469.0,,,775.0,,1175.0,,,,1680.0,,2280.0,,,2810.0,,,3200.0,,3400.0,,3465.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,3500.0,,,,,,,,,,,,

windpowerlib/wind_farm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from windpowerlib import tools, power_curves
1212
import numpy as np
1313
import pandas as pd
14-
import logging
14+
import warnings
1515

1616

1717
class WindFarm(object):

0 commit comments

Comments
 (0)