Skip to content

Commit c183638

Browse files
committed
Raise error
1 parent 9ff32d0 commit c183638

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

windpowerlib/power_curves.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
102102
"`standard_deviation_method`")
103103
elif standard_deviation_method == 'Staffell_Pfenninger':
104104
normalized_standard_deviation = 0.2
105+
else:
106+
raise ValueError("{} is no valid `standard_deviation_method`. Valid "
107+
+ "options are 'turbulence_intensity', or "
108+
+ "'Staffell_Pfenninger'".format(
109+
standard_deviation_method))
105110
# Initialize list for power curve values
106111
smoothed_power_curve_values = []
107112
# Append wind speeds to `power_curve_wind_speeds`

0 commit comments

Comments
 (0)