From c1683f3b3476746ba553e87f0c56d2845ea035fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Sat, 11 Nov 2023 10:13:42 +0100 Subject: [PATCH] docstring replace cores with max_workers --- pympipool/flux/executor.py | 2 +- pympipool/mpi/executor.py | 2 +- pympipool/slurm/executor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pympipool/flux/executor.py b/pympipool/flux/executor.py index 5f0067dc..9ab1e52d 100644 --- a/pympipool/flux/executor.py +++ b/pympipool/flux/executor.py @@ -43,7 +43,7 @@ class PyFluxExecutor(ExecutorBase): >>> def init_k(): >>> return {"k": 3} >>> - >>> with PyFluxExecutor(cores=2, init_function=init_k) as p: + >>> with PyFluxExecutor(max_workers=2, init_function=init_k) as p: >>> fs = p.submit(calc, 2, j=4) >>> print(fs.result()) [(array([2, 4, 3]), 2, 0), (array([2, 4, 3]), 2, 1)] diff --git a/pympipool/mpi/executor.py b/pympipool/mpi/executor.py index 8f6c2183..33b53f68 100644 --- a/pympipool/mpi/executor.py +++ b/pympipool/mpi/executor.py @@ -38,7 +38,7 @@ class PyMPIExecutor(ExecutorBase): >>> def init_k(): >>> return {"k": 3} >>> - >>> with PyMPIExecutor(cores=2, init_function=init_k) as p: + >>> with PyMPIExecutor(max_workers=2, init_function=init_k) as p: >>> fs = p.submit(calc, 2, j=4) >>> print(fs.result()) [(array([2, 4, 3]), 2, 0), (array([2, 4, 3]), 2, 1)] diff --git a/pympipool/slurm/executor.py b/pympipool/slurm/executor.py index 315860e2..1414493e 100644 --- a/pympipool/slurm/executor.py +++ b/pympipool/slurm/executor.py @@ -39,7 +39,7 @@ class PySlurmExecutor(ExecutorBase): >>> def init_k(): >>> return {"k": 3} >>> - >>> with PySlurmExecutor(cores=2, init_function=init_k) as p: + >>> with PySlurmExecutor(max_workers=2, init_function=init_k) as p: >>> fs = p.submit(calc, 2, j=4) >>> print(fs.result())