pyiron_base.interfaces.has_dict#
Interface for classes to serialize to dictionary.
This also contains classes to ease the transition from HDF based storage to dict based serialization. Roughly we want to proceed as follows:
1. Any new object directly implements
HasDict
and derives fromHasHDFfromDict
to be compatible to older code that still relies on the HDF interface. 2. Any old object that doesn’t yet directly implementsHasDict
can trivially derive fromHasDictfromHDF
to be compatible to newer code that uses the dict based serialization. 3. Step by step we can transition old objects to directly implementHasDict
.
Functions
|
Create and restores an object previously written as a dictionary. |
Classes
|
Abstract interface to convert objects to dictionaries for storage. |
Implements HasDict in terms of HasHDF. |
|
Implements HasHDF in terms of HasDict. |