Skip to content

Commit 5f291d9

Browse files
committed
Rename function to be more generic
1 parent e125d59 commit 5f291d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

windpowerlib/modelchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ def wind_speed_hub(self, weather_df):
316316
"or 'log_interpolation_extrapolation'.")
317317
return wind_speed_hub
318318

319-
def turbine_power_output(self, wind_speed_hub, density_hub):
319+
def calculate_power_output(self, wind_speed_hub, density_hub):
320320
r"""
321-
Calculates the power output of the wind turbine.
321+
Calculates the power output of the wind turbine. # todo power plant output????
322322
323323
The method specified by the parameter `power_output_model` is used.
324324
@@ -419,6 +419,6 @@ def run_model(self, weather_df):
419419
density_hub = (None if (self.power_output_model == 'power_curve' and
420420
self.density_correction is False)
421421
else self.density_hub(weather_df))
422-
self.power_output = self.turbine_power_output(wind_speed_hub,
423-
density_hub)
422+
self.power_output = self.calculate_power_output(wind_speed_hub,
423+
density_hub)
424424
return self

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,6 @@ def run_model(self, weather_df):
273273
wind_speed_hub = wake_losses.reduce_wind_speed(
274274
wind_speed_hub,
275275
wind_efficiency_curve_name=self.wake_losses_model)
276-
self.power_output = self.turbine_power_output(wind_speed_hub,
277-
density_hub)
276+
self.power_output = self.calculate_power_output(wind_speed_hub,
277+
density_hub)
278278
return self

0 commit comments

Comments
 (0)