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

Don't reconstitute job object in pyiron table func #945

Merged

Conversation

ligerzero-ai
Copy link
Contributor

get_structure() inbuilt for pyiron_tables for atomistics reconstitutes the job object in its entirety. This is extremely slow and can cause kernel crashing @aabdelkawy . The new function reads from hdf5.

@ligerzero-ai ligerzero-ai merged commit 322ca2e into main Jan 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the remove_job_reconsitution_on_pyiron_table_structure_get branch January 27, 2023 17:39
atoms = pyiron_to_ase(job.to_object().get_structure())
atoms = Atoms().from_hdf(job["output"])
Copy link
Member

Choose a reason for hiding this comment

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

This is not the same, as the structure is not always allocated at the job["output"] For example for the Murnaghan job this does not work:
https://github.com/pyiron/pyiron_atomistics/blob/main/pyiron_atomistics/atomistics/master/murnaghan.py#L958

@jan-janssen
Copy link
Member

get_structure() inbuilt for pyiron_tables for atomistics reconstitutes the job object in its entirety. This is extremely slow and can cause kernel crashing @aabdelkawy . The new function reads from hdf5.

I do not understand why this pull request was merged without any review. It is very hard to maintain a stable code when pull requests are merged without review.

@ligerzero-ai
Copy link
Contributor Author

Ah, my bad, I didn't realise that. Sorry.

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.

2 participants