Skip to content

Commit

Permalink
fix pre-commit and f string
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Sep 19, 2024
1 parent f689ef1 commit 2d3cc3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gallery/howto/autogen/parallel_wf.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ def parallel_add(nb_iterations):
from aiida.engine.daemon.client import get_daemon_client

client = get_daemon_client()
print(f"Number of current daemon workers {client.get_numprocesses()["numprocesses"]}")
print(f"Number of current daemon workers {client.get_numprocesses()['numprocesses']}")

# %%
# We rerun the last graph builder with 2 damon workers

client.increase_workers(1)
print(f"Number of current daemon workers {client.get_numprocesses()["numprocesses"]}")
print(f"Number of current daemon workers {client.get_numprocesses()['numprocesses']}")
wg = WorkGraph("wg_daemon_worker_2")
parallel_add_task_2 = wg.add_task(parallel_add, name="parallel_add", nb_iterations=2)
wg.to_html()
Expand Down

0 comments on commit 2d3cc3f

Please sign in to comment.