Fix generation #8

Open
shadowik wants to merge 1 commits from front-2-fix-gen into front-2

View File

@ -114,13 +114,11 @@ async def get_windmill_data_by_wind_park(
turbine_yaw_angles = [turbine.angle for turbine in turbines]
weather_info_list = [
client.get_weather_info(start_date=data.date_start, end_date=data.date_end, latitude=lat, longitude=lon)
for lat, lon in turbine_coordinates
]
park_centerX, park_centerY = get_absolute_coordinates(park.CenterLatitude, park.CenterLongitude)
weather_info_list = client.get_weather_info(start_date=data.date_start, end_date=data.date_end,
latitude=park.CenterLatitude, longitude=park.CenterLongitude)
turbineX = [
park_centerX + turbine.x_offset
for turbine in turbines
@ -131,8 +129,8 @@ async def get_windmill_data_by_wind_park(
for turbine in turbines
]
wind_speeds = np.array([item[0][0] for item in weather_info_list])
wind_directions = np.array([item[1][0] for item in weather_info_list])
wind_speeds = np.array(weather_info_list[0])
wind_directions = np.array(weather_info_list[1])
print(wind_directions)