From be0e7cb087c482e1cdc0f94c816f585e1b4b8b9c Mon Sep 17 00:00:00 2001 From: birgits Date: Thu, 8 Feb 2024 18:17:39 -0800 Subject: [PATCH] Try fixing indentation warnings in sphinx --- windpowerlib/power_output.py | 23 +++++++++++++++-------- windpowerlib/wind_speed.py | 8 ++++---- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/windpowerlib/power_output.py b/windpowerlib/power_output.py index 6c0e1f75..bf3ed0ee 100644 --- a/windpowerlib/power_output.py +++ b/windpowerlib/power_output.py @@ -178,6 +178,7 @@ def power_curve_density_correction( Calculates the turbine power output using a density corrected power curve. This function is carried out when the parameter `density_correction` of an instance of the :class:`~.modelchain.ModelChain` class is True. + Parameters ---------- wind_speed : :pandas:`pandas.Series` or numpy.array @@ -190,17 +191,19 @@ def power_curve_density_correction( `power_curve_wind_speeds`. density : :pandas:`pandas.Series` or numpy.array Density of air at hub height in kg/m³. + Returns ------- :pandas:`pandas.Series` or numpy.array Electrical power output of the wind turbine in W. Data type depends on type of `wind_speed`. + Notes ----- The following equation is used for the site specific power curve wind speeds [1]_ [2]_ [3]_: - .. math:: v_{site}=v_{std}\cdot\left(\frac{\rho_0} - {\rho_{site}}\right)^{p(v)} + + .. math:: v_{site}=v_{std}\cdot\left(\frac{\rho_0}{\rho_{site}}\right)^{p(v)} with: .. math:: p=\begin{cases} \frac{1}{3} & v_{std} \leq 7.5\text{ m/s}\\ @@ -208,7 +211,9 @@ def power_curve_density_correction( \text{ m/s}