Skip to content

Commit a15b07a

Browse files
committed
PEP8 style
1 parent 5ca27a2 commit a15b07a

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

windpowerlib/wind_farm_modelchain.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,12 @@ def wind_farm_power_curve(self, **kwargs):
180180
summarized_power_curve_df['power'], **kwargs)
181181
if (self.wake_losses_method == 'constant_efficiency' or
182182
self.wake_losses_method == 'wind_efficiency_curve'):
183-
summarized_power_curve_df = power_output.wake_losses_to_power_curve(
184-
summarized_power_curve_df['wind_speed'].values, # TODO check
185-
summarized_power_curve_df['power'].values,
186-
wake_losses_method=self.wake_losses_method,
187-
wind_farm_efficiency=self.wind_farm.efficiency)
183+
summarized_power_curve_df = (
184+
power_output.wake_losses_to_power_curve(
185+
summarized_power_curve_df['wind_speed'].values,
186+
summarized_power_curve_df['power'].values,
187+
wake_losses_method=self.wake_losses_method,
188+
wind_farm_efficiency=self.wind_farm.efficiency))
188189
self.wind_farm.power_curve = summarized_power_curve_df
189190
# self.wind_farm.power_curve = power_output.summarized_power_curve(
190191
# self.wind_farm.wind_turbine_fleet, smoothing=self.smoothing,
@@ -240,30 +241,31 @@ def run_model(self, weather_df, **kwargs):
240241
Other Parameters
241242
----------------
242243
wind_speed_model : string
243-
Parameter to define which model to use to calculate the wind speed at
244-
hub height. Valid options are 'logarithmic', 'hellman' and
244+
Parameter to define which model to use to calculate the wind speed
245+
at hub height. Valid options are 'logarithmic', 'hellman' and
245246
'interpolation_extrapolation'.
246247
temperature_model : string
247-
Parameter to define which model to use to calculate the temperature of
248-
air at hub height. Valid options are 'linear_gradient' and
248+
Parameter to define which model to use to calculate the temperature
249+
of air at hub height. Valid options are 'linear_gradient' and
249250
'interpolation_extrapolation'.
250251
density_model : string
251-
Parameter to define which model to use to calculate the density of air
252-
at hub height. Valid options are 'barometric', 'ideal_gas' and
252+
Parameter to define which model to use to calculate the density of
253+
air at hub height. Valid options are 'barometric', 'ideal_gas' and
253254
'interpolation_extrapolation'.
254255
power_output_model : string
255-
Parameter to define which model to use to calculate the turbine power
256-
output. Valid options are 'power_curve' and 'power_coefficient_curve'.
256+
Parameter to define which model to use to calculate the turbine
257+
power output. Valid options are 'power_curve' and
258+
'power_coefficient_curve'.
257259
density_correction : boolean
258-
If the parameter is True the density corrected power curve is used for
259-
the calculation of the turbine power output.
260+
If the parameter is True the density corrected power curve is used
261+
for the calculation of the turbine power output.
260262
obstacle_height : float
261-
Height of obstacles in the surrounding area of the wind turbine in m.
262-
Set `obstacle_height` to zero for wide spread obstacles.
263+
Height of obstacles in the surrounding area of the wind turbine in
264+
m. Set `obstacle_height` to zero for wide spread obstacles.
263265
hellman_exp : float
264-
The Hellman exponent, which combines the increase in wind speed due to
265-
stability of atmospheric conditions and surface roughness into one
266-
constant.
266+
The Hellman exponent, which combines the increase in wind speed due
267+
to stability of atmospheric conditions and surface roughness into
268+
one constant.
267269
roughness_length : Float, optional.
268270
Roughness length.
269271
turbulence_intensity : Float, optional.

0 commit comments

Comments
 (0)