Skip to content

Commit 34e9dd8

Browse files
committed
Add comment
1 parent 0458a5f commit 34e9dd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

windpowerlib/power_curves.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
128128
power_curve_wind_speed - wind_speed,
129129
standard_deviation, mean_gauss)
130130
for wind_speed in wind_speeds_block)
131-
# Add value to list - add 0 if `smoothed_value` is nan.
131+
# Add value to list - add zero if `smoothed_value` is nan as Gauss
132+
# distribution is not defined for zero.
132133
smoothed_power_curve_values.append(0 if np.isnan(smoothed_value)
133134
else smoothed_value)
134135
# Create smoothed power curve data frame

0 commit comments

Comments
 (0)