Skip to content

Commit 0d8c3ba

Browse files
committed
Add DocStrings
1 parent 5026cc6 commit 0d8c3ba

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

pympipool/interactive/flux.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,28 @@ def __init__(
2828
self._pmi = pmi
2929
self._future = None
3030

31-
def bootup(self, command_lst: list[str]):
31+
def bootup(
32+
self,
33+
command_lst: list[str],
34+
prefix_name: Optional[str] = None,
35+
prefix_path: Optional[str] = None,
36+
):
37+
"""
38+
Boot up the client process to connect to the SocketInterface.
39+
40+
Args:
41+
command_lst (list): list of strings to start the client process
42+
prefix_name (str): name of the conda environment to initialize
43+
prefix_path (str): path of the conda environment to initialize
44+
"""
3245
if self._oversubscribe:
3346
raise ValueError(
3447
"Oversubscribing is currently not supported for the Flux adapter."
3548
)
49+
if prefix_name is not None or prefix_path is not None:
50+
raise ValueError(
51+
"Conda environments are currently not supported for the Flux adapter."
52+
)
3653
if self._executor is None:
3754
self._executor = flux.job.FluxExecutor()
3855
jobspec = flux.job.JobspecV1.from_command(

pympipool/shared/communication.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def bootup(
7878
7979
Args:
8080
command_lst (list): list of strings to start the client process
81+
prefix_name (str): name of the conda environment to initialize
82+
prefix_path (str): path of the conda environment to initialize
8183
"""
8284
self._interface.bootup(
8385
command_lst=command_lst, prefix_name=prefix_name, prefix_path=prefix_path

pympipool/shared/interface.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ def __init__(self, cwd: str, cores: int = 1, oversubscribe: bool = False):
1313
self._cores = cores
1414
self._oversubscribe = oversubscribe
1515

16-
def bootup(self, command_lst: list[str]):
16+
def bootup(
17+
self,
18+
command_lst: list[str],
19+
prefix_name: Optional[str] = None,
20+
prefix_path: Optional[str] = None,
21+
):
1722
raise NotImplementedError
1823

1924
def shutdown(self, wait: bool = True):

0 commit comments

Comments
 (0)