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

Option to store/download working directory #637

Merged
merged 1 commit into from
Apr 25, 2023
Merged

Option to store/download working directory #637

merged 1 commit into from
Apr 25, 2023

Conversation

niklassiemer
Copy link
Member

The downloading is not into the right place to reconstruct the full job directory. However, right now also the names etc. are not pyrionic, nothing is stored in the database and such.
Has to be cleared in conversion to a realistic ArchiveProject.

@niklassiemer niklassiemer requested a review from pmrv April 24, 2023 08:20
@coveralls
Copy link

coveralls commented Apr 24, 2023

Pull Request Test Coverage Report for Build 4790917639

  • 0 of 22 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 12.001%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pyiron_contrib/generic/coscineIo.py 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
pyiron_contrib/generic/coscineIo.py 1 3.23%
Totals Coverage Status
Change from base Build 4787463286: -0.02%
Covered Lines: 1445
Relevant Lines: 12041

💛 - Coveralls

if not job.is_compressed():
job.compress()
self.upload_file(
os.path.join(job.working_directory, job.job_name + ".tar.bz2"), form
Copy link
Contributor

Choose a reason for hiding this comment

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

pyiron_base has a function that constructs the archive name, best to use it. (I forgot the name right now, but it's in the same module as the compress/decompress functions)

Copy link
Member Author

Choose a reason for hiding this comment

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

I had another look and did not find it, actually, the same pattern is used e.g. here

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, sorry that was part of pyiron/pyiron_base#969 which I didn't get around to merge.

@samwaseda samwaseda closed this Apr 24, 2023
@samwaseda samwaseda deleted the coscine_io branch April 24, 2023 20:05
@samwaseda samwaseda restored the coscine_io branch April 24, 2023 20:46
@samwaseda samwaseda reopened this Apr 24, 2023
@niklassiemer niklassiemer merged commit 269fb9f into main Apr 25, 2023
@delete-merged-branch delete-merged-branch bot deleted the coscine_io branch April 25, 2023 06:43
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.

4 participants