Skip to content

Commit

Permalink
Don't copy output to outdir if not using cwltool
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasu Jaganath committed Jan 17, 2025
1 parent a25a726 commit 7200d63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sophios/api/pythonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def run(self) -> None:

# Finally, since there is an output file copying bug in cwltool,
# we need to copy the output files manually. See comment above.
if args.copy_output_files:
if args.cwl_runner == 'cwltool' and args.copy_output_files:
run_local_module.copy_output_files(self.process_name)

# Process = Union[Step, Workflow]
2 changes: 1 addition & 1 deletion src/sophios/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def main() -> None:

# Finally, since there is an output file copying bug in cwltool,
# we need to copy the output files manually. See comment above.
if args.copy_output_files:
if args.cwl_runner == 'cwltool' and args.copy_output_files:
run_local.copy_output_files(yaml_stem)


Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def run_workflows(yml_path_str: str, yml_path: Path, cwl_runner: str, args: argp

# Finally, since there is an output file copying bug in cwltool,
# we need to copy the output files manually. See comment above.
if args.copy_output_files:
if args.cwl_runner == 'cwltool' and args.copy_output_files:
sophios.run_local.copy_output_files(yaml_stem)


Expand Down

0 comments on commit 7200d63

Please sign in to comment.