File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ def wind_speed_hub(self, weather_df):
285285 wind_speed_hub = wind_speed .logarithmic_profile (
286286 weather_df ['wind_speed' ][closest_height ], closest_height ,
287287 self .power_plant .hub_height ,
288- weather_df ['roughness_length' ].ix [:, 0 ],
288+ weather_df ['roughness_length' ].iloc [:, 0 ],
289289 self .obstacle_height )
290290 elif self .wind_speed_model == 'hellman' :
291291 logging .debug ('Calculating wind speed using hellman equation.' )
@@ -296,7 +296,7 @@ def wind_speed_hub(self, weather_df):
296296 wind_speed_hub = wind_speed .hellman (
297297 weather_df ['wind_speed' ][closest_height ], closest_height ,
298298 self .power_plant .hub_height ,
299- weather_df ['roughness_length' ].ix [:, 0 ],
299+ weather_df ['roughness_length' ].iloc [:, 0 ],
300300 self .hellman_exp )
301301 elif self .wind_speed_model == 'interpolation_extrapolation' :
302302 logging .debug ('Calculating wind speed using linear inter- or '
You can’t perform that action at this time.
0 commit comments