Skip to content

Commit 798dcb8

Browse files
committed
Rename standard deviation method
1 parent 2c096d8 commit 798dcb8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

windpowerlib/power_curves.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
3232
Width of the moving block. Default: 0.5.
3333
standard_deviation_method : String
3434
Method for calculating the standard deviation for the gaussian
35-
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell'.
35+
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell_Pfenninger'.
3636
Default: 'turbulence_intensity'.
3737
3838
Other Parameters
@@ -80,7 +80,7 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
8080
os.path.join(os.path.dirname(__file__),
8181
'data/Norgaard_standard_deviation.csv'), index_col=0)
8282
normalized_standard_deviation = 0.09
83-
elif standard_deviation_method == 'Staffell':
83+
elif standard_deviation_method == 'Staffell_Pfenninger':
8484
normalized_standard_deviation = 0.2
8585
# Initialize list for power curve values
8686
smoothed_power_curve_values = []
@@ -99,7 +99,7 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
9999
# Get standard deviation for gaussian filter
100100
standard_deviation = (
101101
(power_curve_wind_speed * normalized_standard_deviation + 0.6)
102-
if standard_deviation_method is 'Staffell'
102+
if standard_deviation_method is 'Staffell_Pfenninger'
103103
else power_curve_wind_speed * normalized_standard_deviation)
104104
# Get the smoothed value of the power output
105105
smoothed_value = sum(

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TurbineClusterModelChain(object):
3737
Default in :py:func:`~.power_curves.smooth_power_curve`: 0.5.
3838
standard_deviation_method : String, optional
3939
Method for calculating the standard deviation for the gaussian
40-
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell'.
40+
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell_Pfenninger'.
4141
Default in :py:func:`~.power_curves.smooth_power_curve`:
4242
'turbulence_intensity'.
4343
density_correction_order : String
@@ -72,7 +72,7 @@ class TurbineClusterModelChain(object):
7272
Default in :py:func:`~.power_curves.smooth_power_curve`: 0.5.
7373
standard_deviation_method : String, optional
7474
Method for calculating the standard deviation for the gaussian
75-
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell'.
75+
distribution. Options: 'turbulence_intensity', 'Norgaard', 'Staffell_Pfenninger'.
7676
Default in :py:func:`~.power_curves.smooth_power_curve`:
7777
'turbulence_intensity'.
7878
power_output : pandas.Series

0 commit comments

Comments
 (0)