Skip to content

Commit

Permalink
Merge pull request #221 from pyiron/mini_docs
Browse files Browse the repository at this point in the history
Small fixes to docstrings
  • Loading branch information
jan-janssen authored Nov 11, 2023
2 parents b75dc1b + 7e6f40c commit 816b586
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.DS_Store
.coverage
.idea/
.vscode/
5 changes: 2 additions & 3 deletions pympipool/flux/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PyFluxExecutor(ExecutorBase):
executor (flux.job.FluxExecutor): Flux Python interface to submit the workers to flux
Examples:
```
>>> import numpy as np
>>> from pympipool.flux import PyFluxExecutor
>>>
Expand All @@ -46,9 +46,8 @@ class PyFluxExecutor(ExecutorBase):
>>> with PyFluxExecutor(cores=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)]
```
"""

def __init__(
Expand Down
4 changes: 2 additions & 2 deletions pympipool/mpi/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PyMPIExecutor(ExecutorBase):
sleep_interval (float): synchronization interval - default 0.1
Examples:
```
>>> import numpy as np
>>> from pympipool.mpi import PyMPIExecutor
>>>
Expand All @@ -42,7 +42,7 @@ class PyMPIExecutor(ExecutorBase):
>>> fs = p.submit(calc, 2, j=4)
>>> print(fs.result())
[(array([2, 4, 3]), 2, 0), (array([2, 4, 3]), 2, 1)]
```
"""

def __init__(
Expand Down
3 changes: 1 addition & 2 deletions pympipool/slurm/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PySlurmExecutor(ExecutorBase):
sleep_interval (float): synchronization interval - default 0.1
Examples:
```
>>> import numpy as np
>>> from pympipool.slurm import PySlurmExecutor
>>>
Expand All @@ -44,7 +44,6 @@ class PySlurmExecutor(ExecutorBase):
>>> print(fs.result())
[(array([2, 4, 3]), 2, 0), (array([2, 4, 3]), 2, 1)]
```
"""

def __init__(
Expand Down

0 comments on commit 816b586

Please sign in to comment.