-
Notifications
You must be signed in to change notification settings - Fork 15
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
GenericParameters: add to_dict() and from_dict() #1249
Conversation
pyiron_base/storage/parameters.py
Outdated
@@ -936,17 +943,19 @@ def _lines_to_dict(self, lines): | |||
lst["Comment"].append("") | |||
return lst | |||
|
|||
def _type_to_hdf(self, hdf): | |||
def _type_to_dict(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(now that it's done, go ahead with this now anyway, just making my point.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pmrv I added an interface class, maybe you can have another look tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nits, otherwise lgtm.
Co-authored-by: Marvin Poul <[email protected]>
Co-authored-by: Marvin Poul <[email protected]>
In analogy to #1248 this pull request adds the
to_dict()
andfrom_dict()
function to theGenericParameters
class. This is required to enable more flexible storage backends.