Skip to content

Commit 0fb61e7

Browse files
committed
Allow floats for data heights again
1 parent 65e5781 commit 0fb61e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windpowerlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def run_model(self, weather_df):
442442
# Convert data heights to integer. In some case they are strings.
443443
weather_df.columns = pd.MultiIndex.from_arrays([
444444
weather_df.columns.get_level_values(0),
445-
weather_df.columns.get_level_values(1).astype(int)])
445+
pd.to_numeric(weather_df.columns.get_level_values(1))])
446446

447447
wind_speed_hub = self.wind_speed_hub(weather_df)
448448
density_hub = (None if (self.power_output_model == 'power_curve' and

0 commit comments

Comments
 (0)