Skip to content

Commit 7fd6cfa

Browse files
committed
Change data types array-like and array to numpy.array
1 parent 6fae170 commit 7fd6cfa

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

windpowerlib/density.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def temperature_gradient(temp_air, temp_height, hub_height):
2020
2121
Parameters
2222
----------
23-
temp_air : pandas.Series or array-like
23+
temp_air : pandas.Series or numpy.array
2424
Air temperature in K.
2525
temp_height : float
2626
Height in m for which the parameter `temp_air` applies.
@@ -29,7 +29,7 @@ def temperature_gradient(temp_air, temp_height, hub_height):
2929
3030
Returns
3131
-------
32-
pandas.Series or array
32+
pandas.Series or numpy.array
3333
Temperature at hub height in K.
3434
3535
Notes
@@ -70,9 +70,9 @@ def temperature_interpol(temp_air_1, temp_air_2,
7070
7171
Parameters
7272
----------
73-
temp_air_1 : pandas.Series or array-like
73+
temp_air_1 : pandas.Series or numpy.array
7474
Air temperature.
75-
temp_air_2 : pandas.Series or array-like
75+
temp_air_2 : pandas.Series or numpy.array
7676
Second air temperature for interpolation.
7777
temp_air_height_1 : float
7878
Height for which the parameter `temp_air_1` applies.
@@ -83,7 +83,7 @@ def temperature_interpol(temp_air_1, temp_air_2,
8383
8484
Returns
8585
-------
86-
pandas.Series or array
86+
pandas.Series or numpy.array
8787
Temperature at hub height.
8888
8989
Notes
@@ -116,18 +116,18 @@ def rho_barometric(pressure, pressure_height, hub_height, temp_hub):
116116
117117
Parameters
118118
----------
119-
pressure : pandas.Series or array-like
119+
pressure : pandas.Series or numpy.array
120120
Air pressure in Pa.
121121
pressure_height : float
122122
Height in m for which the parameter `pressure` applies.
123123
hub_height : float
124124
Hub height of wind turbine in m.
125-
temp_hub : pandas.Series or array-like
125+
temp_hub : pandas.Series or numpy.array
126126
Air temperature at hub height in K.
127127
128128
Returns
129129
-------
130-
pandas.Series
130+
pandas.Series or numpy.array
131131
Density of air at hub height in kg/m³.
132132
133133
Notes
@@ -172,18 +172,18 @@ def rho_ideal_gas(pressure, pressure_height, hub_height, temp_hub):
172172
173173
Parameters
174174
----------
175-
pressure : pandas.Series or array-like
175+
pressure : pandas.Series or numpy.array
176176
Air pressure in Pa.
177177
pressure_height : float
178178
Height in m for which the parameter `pressure` applies.
179179
hub_height : float
180180
Hub height of wind turbine in m.
181-
temp_hub : pandas.Series or array-like
181+
temp_hub : pandas.Series or numpy.array
182182
Air temperature at hub height in K.
183183
184184
Returns
185185
-------
186-
pandas.Series
186+
pandas.Series or numpy.array
187187
Density of air at hub height in kg/m³.
188188
189189
Notes

windpowerlib/modelchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def rho_hub(self, weather, data_height):
141141
142142
Returns
143143
-------
144-
rho_hub : pandas.Series or array
144+
rho_hub : pandas.Series or numpy.array
145145
Density of air in kg/m³ at hub height.
146146
147147
"""
@@ -214,7 +214,7 @@ def v_wind_hub(self, weather, data_height):
214214
215215
Returns
216216
-------
217-
v_wind : pandas.Series or array
217+
v_wind : pandas.Series or numpy.array
218218
Wind speed in m/s at hub height.
219219
220220
Notes
@@ -275,9 +275,9 @@ def turbine_power_output(self, v_wind, rho_hub):
275275
276276
Parameters
277277
----------
278-
v_wind : pandas.Series or array
278+
v_wind : pandas.Series or numpy.array
279279
Wind speed at hub height in m/s.
280-
rho_hub : pandas.Series or array
280+
rho_hub : pandas.Series or numpy.array
281281
Density of air at hub height in kg/m³.
282282
283283
Returns

windpowerlib/power_output.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def cp_curve(v_wind, rho_hub, d_rotor, cp_values):
2121
2222
Parameters
2323
----------
24-
v_wind : pandas.Series or array-like
24+
v_wind : pandas.Series or numpy.array
2525
Wind speed at hub height in m/s.
26-
rho_hub : pandas.Series or array-like
26+
rho_hub : pandas.Series or numpy.array
2727
Density of air at hub height in kg/m³.
2828
d_rotor : float
2929
Diameter of rotor in m.
@@ -83,9 +83,9 @@ def cp_curve_density_corr(v_wind, rho_hub, d_rotor, cp_values):
8383
8484
Parameters
8585
----------
86-
v_wind : pandas.Series or array
86+
v_wind : pandas.Series or numpy.array
8787
Wind speed at hub height in m/s.
88-
rho_hub : pandas.Series or array-like
88+
rho_hub : pandas.Series or numpy.array
8989
Density of air at hub height in kg/m³.
9090
cp_values : pandas.DataFrame
9191
Power coefficient curve of the wind turbine.
@@ -130,7 +130,7 @@ def p_curve(p_values, v_wind):
130130
Power curve of the wind turbine.
131131
Indices are the wind speeds of the power curve in m/s, the
132132
corresponding power values in W are in the column 'p'.
133-
v_wind : pandas.Series or array
133+
v_wind : pandas.Series or numpy.array
134134
Wind speed at hub height in m/s.
135135
136136
Returns
@@ -165,9 +165,9 @@ def p_curve_density_corr(v_wind, rho_hub, p_values):
165165
166166
Parameters
167167
----------
168-
v_wind : pandas.Series or array
168+
v_wind : pandas.Series or numpy.array
169169
Wind speed time series at hub height in m/s.
170-
rho_hub : pandas.Series or array
170+
rho_hub : pandas.Series or numpy.array
171171
Density of air at hub height in kg/m³.
172172
p_values : pandas.DataFrame
173173
Power curve of the wind turbine.

windpowerlib/wind_speed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ def logarithmic_wind_profile(v_wind, v_wind_height, hub_height, z_0,
2323
2424
Parameters
2525
----------
26-
v_wind : pandas.Series or array-like
26+
v_wind : pandas.Series or numpy.array
2727
Wind speed time series.
2828
v_wind_height : float
2929
Height for which the parameter `v_wind` applies.
3030
hub_height : float
3131
Hub height of wind turbine.
32-
z_0 : pandas.Series or array-like or float
32+
z_0 : pandas.Series or numpy.array or float
3333
Roughness length.
3434
obstacle_height : float
3535
Height of obstacles in the surrounding area of the wind turbine. Set
3636
`obstacle_height` to zero for wide spread obstacles. Default: 0.
3737
3838
Returns
3939
-------
40-
pandas.Series or array
40+
pandas.Series or numpy.array
4141
Wind speed at hub height.
4242
4343
Notes
@@ -93,7 +93,7 @@ def v_wind_hellman(v_wind, v_wind_height, hub_height, hellman_exp=None,
9393
9494
Parameters
9595
----------
96-
v_wind : pandas.Series or array-like
96+
v_wind : pandas.Series or numpy.array
9797
Wind speed time series.
9898
v_wind_height : float
9999
Height for which the parameter `v_wind` applies.
@@ -104,13 +104,13 @@ def v_wind_hellman(v_wind, v_wind_height, hub_height, hellman_exp=None,
104104
stability of atmospheric conditions and surface roughness into one
105105
constant. Default: None. If None and roughness length is given
106106
`hellman_exp` = 1 / ln(h_hub/z_0), otherwise `hellman_exp` = 1/7.
107-
z_0 : pandas.Series or array or float
107+
z_0 : pandas.Series or numpy.array or float
108108
Roughness length. Default: None. If given
109109
`hellman_exp` = 1 / ln(h_hub/z_0), otherwise `hellman_exp` = 1/7.
110110
111111
Returns
112112
-------
113-
pandas.Series or array
113+
pandas.Series or numpy.array
114114
Wind speed at hub height.
115115
116116
Notes

0 commit comments

Comments
 (0)