Skip to content

Commit

Permalink
Merge pull request #40 from coltonbh/feature-collect-files-only-if-ad…
Browse files Browse the repository at this point in the history
…apter-uses-files
  • Loading branch information
coltonbh authored Jul 16, 2024
2 parents 3f71be1 + 1b1796d commit f3498ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [unreleased]

### Changed

- Only respect `collect_file` for for `Adapter.compute` if the adapter has `.uses_files=True`.

## [0.7.4] - 2024-07-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion qcop/adapters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def compute(
output_obj = ProgramOutput[InputType, ResultsType](**output_dict)

# Collect files generated by the program
if collect_files or type(inp_obj) is FileInput:
if self.uses_files and (collect_files or type(inp_obj) is FileInput):
output_obj.add_files(
final_scratch_dir,
recursive=True,
Expand Down

0 comments on commit f3498ae

Please sign in to comment.