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

If JOB_CLASS_DICT contains class return early #1188

Merged
merged 1 commit into from
Sep 15, 2023
Merged

If JOB_CLASS_DICT contains class return early #1188

merged 1 commit into from
Sep 15, 2023

Conversation

pmrv
Copy link
Contributor

@pmrv pmrv commented Sep 14, 2023

Usually JOB_CLASS_DICT contains the module path from where to import the class. However Project.create.job/register also supports live classes in there, but this was not handled when loading jobs from HDF again. That code path always expected the module path (as a string) and consequently crashed when it found an object there.

Usually JOB_CLASS_DICT contains the module path from where to import the class.
However Project.create.job/register also supports live classes in there, but this was not
handled when loading jobs from HDF again.  That code path always expected the module path
(as a string) and consequently crashed when it found an object there.
@pmrv pmrv added bug Something isn't working integration Start the integration tests with pyiron_atomistics/contrib for this PR labels Sep 14, 2023
@pmrv pmrv merged commit 5160843 into main Sep 15, 2023
31 checks passed
@delete-merged-branch delete-merged-branch bot deleted the loadclass branch September 15, 2023 10:53
pmrv added a commit that referenced this pull request Feb 14, 2024
A refactor in between must have missed renaming the variable that the check is using, essentially
making it always False.
@pmrv pmrv mentioned this pull request Feb 14, 2024
pmrv added a commit that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration Start the integration tests with pyiron_atomistics/contrib for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant