|
|
|
|
@ -57,10 +57,10 @@ async def get_simulation_results(*, simulation_id: str, token: str):
|
|
|
|
|
plant_task = client.get(calc_plant_result, headers=headers)
|
|
|
|
|
|
|
|
|
|
# Run all three requests concurrently
|
|
|
|
|
calc_response, plot_response, plant_response = await asyncio.gather(calc_task, plot_task, plant_task)
|
|
|
|
|
calc_response, plant_response = await asyncio.gather(calc_task, plant_task)
|
|
|
|
|
|
|
|
|
|
calc_response.raise_for_status()
|
|
|
|
|
plot_response.raise_for_status()
|
|
|
|
|
# plot_response.raise_for_status()
|
|
|
|
|
plant_response.raise_for_status()
|
|
|
|
|
|
|
|
|
|
calc_data = calc_response.json()["data"]
|
|
|
|
|
|