Skip to content

Commit

Permalink
docstring replace cores with max_workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 11, 2023
1 parent 816b586 commit c1683f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pympipool/flux/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion pympipool/mpi/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion pympipool/slurm/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c1683f3

Please sign in to comment.