- class openpnm.io.Dict¶
dictswith a high degree of control over the structure.
This is the most important class in the
iomodule, since many other classes use this to manipulate and format the data structures.
Also, it is possible to use Python’s
picklemodule to save
Saves data from the given dictionary into the specified file.
from_dict(dct[, project, delim])
This method converts a correctly formatted dictionary into OpenPNM objects, and returns a handle to the project containing them.
Load data from the specified pickle file into a Python dictionary
to_dict([network, phases, element, ...])
Returns a single dictionary object containing data from the given OpenPNM objects, with the keys organized differently depending on optional arguments.