pyiron_contrib.protocol.utils.dictionaries module

class pyiron_contrib.protocol.utils.dictionaries.IODictionary(**kwargs)[source]

Bases: dict, LoggerMixin

A dictionary class representing the parameters of a Command class. The dictionary holds a path which is recipe that can be resolved at runtime to obtain underlying values. A dictionary instance can hold multiple instances of IODictionary as value items which can be resolved into the real values when desired.

from_hdf(hdf, group_name)[source]
resolve()[source]

Even though printing the dictionary, or asking for a particular item resolves paths fine, somehow using the ** unpacking syntax fails to resolve pointers. This is to cover that issue since I couldn’t find anything on google how to modify the ** behaviour.

to_hdf(hdf, group_name=None)[source]
class pyiron_contrib.protocol.utils.dictionaries.InputDictionary[source]

Bases: IODictionary

An IODictionary which is instantiated with a child dictionary to store default values. If a requested item can’t be found in this dictionary, a default value is sought.

items() a set-like object providing a view on D's items[source]
keys() a set-like object providing a view on D's keys[source]
values() an object providing a view on D's values[source]
class pyiron_contrib.protocol.utils.dictionaries.TimelineDict[source]

Bases: LoggerMixin, OrderedDict

Dictionary which acts as timeline

property array
property data
items() a set-like object providing a view on D's items[source]
keys() a set-like object providing a view on D's keys[source]
property timeline