Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericJob: extend the compress() function #1400

Merged
merged 2 commits into from
Apr 17, 2024
Merged

GenericJob: extend the compress() function #1400

merged 2 commits into from
Apr 17, 2024

Conversation

jan-janssen
Copy link
Member

For codes like VASP we typically remove certain files before we compress the working directory and other files we leave out of the archive. This is now possible using job.files_to_compress and job.files_to_remove. Both properties return a list, so the user can append additional files.

For codes like VASP we typically remove certain files before we compress the working directory and other files we leave out of the archive. This is now possible using `job.files_to_compress` and `job.files_to_remove`. Both properties return a list, so the user can append additional files.
@jan-janssen jan-janssen marked this pull request as draft March 27, 2024 17:47
@jan-janssen jan-janssen marked this pull request as ready for review March 27, 2024 17:54
@jan-janssen jan-janssen requested a review from pmrv March 27, 2024 17:54
@@ -295,11 +303,9 @@ def _job_compress(job, files_to_compress=None):
tar.add(name)
for name in files_to_compress:
if "tar" not in name:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not introduced here, but would be nice to change if "tar" not in name: to name != _job_compressed_name(job). Otherwise lgtm.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I updated the pull request

@jan-janssen jan-janssen merged commit e50f885 into main Apr 17, 2024
24 of 25 checks passed
@jan-janssen jan-janssen deleted the compress_ex branch April 17, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants