Skip to content

Commit 7b42c33

Browse files
committed
Minor docstring changes
1 parent 3cbbddc commit 7b42c33

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

windpowerlib/power_output.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def power_coefficient_curve(wind_speed, power_coefficient_curve_wind_speeds,
4444
4545
Notes
4646
-----
47-
The following equation is used if the parameter `density_corr` is False
48-
[1]_ [2]_:
47+
The following equation is used [1]_ [2]_:
4948
5049
.. math:: P=\frac{1}{8}\cdot\rho_{hub}\cdot d_{rotor}^{2}
5150
\cdot\pi\cdot v_{wind}^{3}\cdot cp\left(v_{wind}\right)

windpowerlib/tools.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class WindpowerlibUserWarning(UserWarning):
2929

3030
def linear_interpolation_extrapolation(df, target_height):
3131
r"""
32-
Linear inter- or extrapolates between the values of a data frame.
32+
Linearly inter- or extrapolates between the values of a data frame.
3333
34-
This function can be used for the inter-/extrapolation of a parameter
35-
(e.g wind speed) available at two or more different heights, to approximate
36-
the value at hub height. The function is carried out when the parameter
37-
`wind_speed_model`, `density_model` or `temperature_model` of an
38-
instance of the :class:`~.modelchain.ModelChain` class is
39-
'interpolation_extrapolation'.
34+
This function can be used for the linear inter-/extrapolation of a
35+
parameter (e.g wind speed) available at two or more different heights, to
36+
approximate the value at hub height.
37+
The function is carried out when the parameter `wind_speed_model`,
38+
`density_model` or `temperature_model` of an instance of the
39+
:class:`~.modelchain.ModelChain` class is 'interpolation_extrapolation'.
4040
4141
Parameters
4242
----------
@@ -91,12 +91,13 @@ def linear_interpolation_extrapolation(df, target_height):
9191

9292
def logarithmic_interpolation_extrapolation(df, target_height):
9393
r"""
94-
Logarithmic inter- or extrapolates between the values of a data frame.
94+
Logarithmic inter- or extrapolation between the values of a data frame.
9595
96-
This function can be used for the inter-/extrapolation of the wind speed if
97-
it is available at two or more different heights, to approximate
98-
the value at hub height. The function is carried out when the parameter
99-
`wind_speed_model` :class:`~.modelchain.ModelChain` class is
96+
This function can be used for the logarithmic inter-/extrapolation of the
97+
wind speed if it is available at two or more different heights, to
98+
approximate the value at hub height.
99+
The function is carried out when the parameter `wind_speed_model`
100+
:class:`~.modelchain.ModelChain` class is
100101
'log_interpolation_extrapolation'.
101102
102103
Parameters

0 commit comments

Comments
 (0)