Skip to content

Commit b140b35

Browse files
committed
small fixes
1 parent a1bb436 commit b140b35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

windpowerlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def density_hub(self, weather_df):
232232
elif self.density_model == 'interpolation_extrapolation':
233233
logging.debug('Calculating density using linear inter- or '
234234
'extrapolation.')
235-
density_hub = tools.linear_extra_interpolation(
235+
density_hub = tools.linear_interpolation_extrapolation(
236236
weather_df['density'], self.wind_turbine.hub_height)
237237
else:
238238
raise ValueError("'{0}' is an invalid value. ".format(

windpowerlib/power_output.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def power_coefficient_curve(wind_speed, cp_values, rotor_diameter, density,
8080
density)
8181
else:
8282
raise TypeError("'{0}' is an invalid type. ".format(type(
83-
density_correction)) + "`density_corr` must be " +
84-
"Boolean (True or False).")
83+
density_correction)) + "`density_correction` must " +
84+
"be Boolean (True or False).")
8585

8686
# Power_output as pd.Series if wind_speed is pd.Series (else: np.array)
8787
if isinstance(wind_speed, pd.Series):
@@ -136,8 +136,8 @@ def power_curve(wind_speed, p_values, density=None, density_correction=False):
136136
density)
137137
else:
138138
raise TypeError("'{0}' is an invalid type. ".format(type(
139-
density_correction)) + "`density_corr` must be " +
140-
"Boolean (True or False).")
139+
density_correction)) + "`density_correction` must " +
140+
"be Boolean (True or False).")
141141
# Power_output as pd.Series if wind_speed is pd.Series (else: np.array)
142142
if isinstance(wind_speed, pd.Series):
143143
power_output = pd.Series(data=power_output, index=wind_speed.index,

0 commit comments

Comments
 (0)