Skip to content

Commit 5f7167f

Browse files
committed
power_output is np.array if v_wind is np.array
Before the data type of the return value was list
1 parent 384934a commit 5f7167f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

windpowerlib/power_output.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,6 @@ def p_curve_density_corr(v_wind, rho_hub, p_values):
231231
if isinstance(v_wind, pd.Series):
232232
power_output = pd.Series(data=power_output, index=v_wind.index,
233233
name='feedin_wind_turbine')
234+
else:
235+
power_output = np.array(power_output)
234236
return power_output

0 commit comments

Comments
 (0)