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

Add local maintenance with defragment_storage #673

Merged
merged 2 commits into from Feb 3, 2022

Conversation

niklassiemer
Copy link
Member

Substitute for #661 from @sudarsan-surendralal
This adds a local maintenance to the project, where one can trigger a rewrite_hdf for all jobs.

recursive=recursive, progress=progress, convert_to_object=False, **kwargs
):
hdf = job.project_hdf5
hdf.rewrite_hdf(job.name)

Choose a reason for hiding this comment

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

Would it be a good idea to remove the job_name argument for rewrite_hdf in this PR itself?

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 am not really sure. Looking at rewrite_hdf I sort of had the feeling that this only rewrites the job itself and not (necessarily) the overall file. I wanted to do (and probably include some tests into base) to see if it actually correctly rewrites the whole hdf file if multiple jobs are in there or has a latent bug for such cases.

pyiron_base/project/maintenance.py Outdated Show resolved Hide resolved
Co-authored-by: Sudarsan Surendralal <surendralal@mpie.de>
Copy link
Member

@sudarsan-surendralal sudarsan-surendralal left a comment

Choose a reason for hiding this comment

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

LGTM! I think the changes with the rewrite_hdf function can be done in a separate PR

@niklassiemer niklassiemer merged commit 47ae787 into master Feb 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the local_maintenance_rewrite_hdf branch February 3, 2022 16:54
@sudarsan-surendralal sudarsan-surendralal mentioned this pull request Feb 3, 2022
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