Skip to content

Commit 272aee2

Browse files
committed
Make function work with open_FRED data
1 parent 070ac7d commit 272aee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def run_model(self, weather_df):
209209
smoothing=self.smoothing, block_width=self.block_width,
210210
standard_deviation_method=self.standard_deviation_method,
211211
smoothing_order=self.smoothing_order,
212-
roughness_length=weather_df['roughness_length'].values.mean(),
212+
roughness_length=weather_df['roughness_length'][0].mean(),
213213
turbulence_intensity=turbulence_intensity)
214214
# Assign mean hub height
215215
self.power_plant.mean_hub_height()

0 commit comments

Comments
 (0)