Skip to content

Commit bf1e475

Browse files
committed
Documentation fixes
1 parent e1be437 commit bf1e475

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

docs/source/api_workflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
workflow.file
2-
=============
1+
wrench.workflow
2+
===============
33

44
.. automodule:: wrench.workflow
55
:members:

wrench/simulation.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def add_file(self, name: str, size: int) -> File:
221221
def get_all_files(self) -> dict[str, File]:
222222
"""
223223
Get the list of all files
224+
224225
:return: A dictionary of File objects where ta names are keys
225226
:rtype: dict[str, File]
226227
"""
@@ -307,21 +308,22 @@ def create_cloud_compute_service(self, hostname: str,
307308
property_list: dict[str, str],
308309
message_payload_list: dict[str, float]) -> CloudComputeService:
309310
"""
311+
Create a cloud compute service
310312
311-
:param hostname: name of the (simulated) host on which the compute service should run
312-
:type hostname: str
313-
:param execution_host: compute resources as a list of hostnames
314-
:param scratch_space: the compute service’s scratch space’s mount point (”” means none)
315-
:type scratch_space: str
316-
:param property_list: a property list ({} means “use all defaults”)
317-
:type property_list: dict
318-
:param message_payload_list: a message payload list ({} means “use all defaults”)
319-
:type message_payload_list: dict
320-
:return: the service name
321-
:rtype: CloudComputeService
313+
:param hostname: name of the (simulated) host on which the compute service should run
314+
:type hostname: str
315+
:param execution_host: compute resources as a list of hostnames
316+
:param scratch_space: the compute service’s scratch space’s mount point (”” means none)
317+
:type scratch_space: str
318+
:param property_list: a property list ({} means “use all defaults”)
319+
:type property_list: dict
320+
:param message_payload_list: a message payload list ({} means “use all defaults”)
321+
:type message_payload_list: dict
322+
:return: the service name
323+
:rtype: CloudComputeService
322324
323-
:raises WRENCHException: if there is any error in the response
324-
"""
325+
:raises WRENCHException: if there is any error in the response
326+
"""
325327
data = {"head_host": hostname, "resources": execution_host, "scratch_space": scratch_space,
326328
"property_list": json.dumps(property_list),
327329
"message_payload_list": json.dumps(message_payload_list)}

wrench/storage_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class StorageService(SimulationItem):
2020
def __init__(self, simulation, name: str) -> None:
2121
"""
2222
Constructor
23+
2324
:param simulation: simulation object
2425
:type simulation
2526
:param name: Storage service name
@@ -30,6 +31,7 @@ def __init__(self, simulation, name: str) -> None:
3031
def create_file_copy(self, file: File) -> None:
3132
"""
3233
Creates a copy of a file (ex nihilo) at this storage service
34+
3335
:param file: the file
3436
:return:
3537
"""
@@ -38,6 +40,7 @@ def create_file_copy(self, file: File) -> None:
3840
def lookup_file(self, file: File) -> bool:
3941
"""
4042
Checks whether a copy of a file is stored on the storage service
43+
4144
:param file: the file
4245
:return: true or false
4346
:rtype: bool

wrench/workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def add_task(self, name: str, flops: float, min_num_cores: int, max_num_cores: i
5252
def get_tasks(self) -> dict[str, Task]:
5353
"""
5454
Get the list of all tasks in the workflow
55+
5556
:return: A dictionary of Task objects where task names are keys
5657
:rtype: dict[str, Task]
5758
"""
@@ -60,6 +61,7 @@ def get_tasks(self) -> dict[str, Task]:
6061
def get_input_files(self) -> List[str]:
6162
"""
6263
Get the list of all input files of the workflow
64+
6365
:return: A dictionary of Task objects where task names are keys
6466
:rtype: dict[str, Task]
6567
"""

0 commit comments

Comments
 (0)