From faea9f4ade14955583e4a6f1e080b857f4fe6a89 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:16:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mesa/visualization/solara_viz.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mesa/visualization/solara_viz.py b/mesa/visualization/solara_viz.py index 06b0cc60037..5492cc18004 100644 --- a/mesa/visualization/solara_viz.py +++ b/mesa/visualization/solara_viz.py @@ -216,13 +216,11 @@ async def step(): @function_logger(__name__) def do_step(): """Advance the model by one step.""" - - for _ in range(model_parameters.value['stepsize']): - + for _ in range(model_parameters.value["stepsize"]): model.value.step() running.value = model.value.running - + force_update() @function_logger(__name__)