diff --git a/src/python/impactx/dashboard/Analyze/plotsMain.py b/src/python/impactx/dashboard/Analyze/plotsMain.py index e85d49068..b619e2305 100644 --- a/src/python/impactx/dashboard/Analyze/plotsMain.py +++ b/src/python/impactx/dashboard/Analyze/plotsMain.py @@ -152,7 +152,6 @@ async def print_lines(): ctrl.terminal_print(line) ctrl.terminal_print("Simulation complete.") - asyncio.create_task(print_lines()) @@ -176,7 +175,7 @@ def on_filtered_data_change(**kwargs): @ctrl.add("run_simulation") def run_simulation_and_store(): - state.simulation_complete = True, + state.simulation_complete = (True,) state.plot_options = available_plot_options(simulationClicked=True) run_simulation_impactX() update_plot() diff --git a/tests/python/dashboard/test_dashboard.py b/tests/python/dashboard/test_dashboard.py index a455d88d9..186e9a216 100644 --- a/tests/python/dashboard/test_dashboard.py +++ b/tests/python/dashboard/test_dashboard.py @@ -81,7 +81,9 @@ def test_dashboard(): sb.click("#Run_route") sb.click("#run_simulation_button") - assert check_until_visible(sb, "#simulation_complete"), "Simulation did not complete successfully." + assert check_until_visible( + sb, "#simulation_complete" + ), "Simulation did not complete successfully." finally: if app_process is not None: