@@ -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 (
0 commit comments