Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2024
1 parent f083ba6 commit 7fc0ebf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/python/impactx/dashboard/Analyze/plotsMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ async def print_lines():
ctrl.terminal_print(line)
ctrl.terminal_print("Simulation complete.")


asyncio.create_task(print_lines())


Expand All @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion tests/python/dashboard/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7fc0ebf

Please sign in to comment.