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

Hotfix: Correct potential init for atomicrex #77

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

pmrv
Copy link
Contributor

@pmrv pmrv commented Feb 10, 2021

The issue is that even though AbstractPotential derives from InputList, it doesn't act like one, because it doesn't accept a list initializer in its init. InputList.from_hdf depends on that possibility though. I haven't tried it, but this should work.

However the better fix would be that AbstractPotential doesn't derive from InputList (since it is not intended to be used like one) and instead has a private member that is an InputList. Then you can still use the list for HDF5 storage, but without breaking its protocol.

@pmrv pmrv changed the base branch from master to non_modal February 10, 2021 16:52
Copy link
Member

@jan-janssen jan-janssen left a comment

Choose a reason for hiding this comment

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

Works for me, thx

@jan-janssen
Copy link
Member

Still I guess we should discuss if it is possible to simplify the development of classes for pyiron - maybe on friday in the pyiron meeting. I guess @Leimeroth intention was to just derive from InputList and then the data storage is already taken care of and that is not yet the case.

@jan-janssen jan-janssen merged commit c7dbb81 into non_modal Feb 10, 2021
@delete-merged-branch delete-merged-branch bot deleted the potential_init branch February 10, 2021 17:37
@Leimeroth
Copy link
Member

Leimeroth commented Feb 11, 2021

I guess @Leimeroth intention was to just derive from InputList and then the data storage is already taken care of and that is not yet the case.

Yes I derived so much from InputList because I like how they look in jupyter and because I hoped to avoid manually messing with the hdf5 input/output.

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

3 participants