Skip to content

Commit f20871a

Browse files
committed
tmp commit
1 parent ce982b3 commit f20871a

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

tests/translators_loggers/test_translators_loggers.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,16 @@ class TestTranslators:
231231
@pytest.mark.parametrize(
232232
"backend",
233233
[
234-
"swiftt",
235-
"dask",
234+
# "swiftt",
235+
# "dask",
236236
"parsl",
237-
"nextflow",
238-
"airflow",
239-
"bash",
240-
"taskvine",
241-
"makeflow",
242-
"cwl",
243-
"pegasus",
237+
# "nextflow",
238+
# "airflow",
239+
# "bash",
240+
# "taskvine",
241+
# "makeflow",
242+
# "cwl",
243+
# "pegasus",
244244
])
245245
@pytest.mark.unit
246246
# @pytest.mark.skip(reason="tmp")

wfcommons/wfbench/translator/parsl.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def translate(self, output_folder: pathlib.Path) -> None:
9696
self._copy_binary_files(output_folder)
9797
self._generate_input_files(output_folder)
9898

99+
# README file
100+
self._write_readme_file(output_folder)
101+
99102
def _parsl_wftasks_codelines(self) -> list[str]:
100103
codelines = ["task_arr = []\n"]
101104

@@ -161,3 +164,14 @@ def _parsl_wftasks_codelines(self) -> list[str]:
161164
codelines.extend(cleanup_code)
162165

163166
return codelines
167+
168+
def _write_readme_file(self, output_folder: pathlib.Path) -> None:
169+
"""
170+
Write the README file.
171+
172+
:param output_folder: The path of the output folder.
173+
:type output_folder: pathlib.Path
174+
"""
175+
readme_file_path = output_folder.joinpath("README")
176+
with open(readme_file_path, "w") as out:
177+
out.write(f"Simply run: python3 ./parsl_workflow.py\n")

0 commit comments

Comments
 (0)