reV.utilities.slots.SlottedDict

class SlottedDict[source]

Bases: object

Slotted memory dictionary emulator.

Methods

items()

Get an items iterator similar to a dictionary.

keys()

Get a keys list similar to a dictionary.

update(slotted_dict)

Add output variables from another instance into this instance.

values()

Get a values list similar to a dictionary.

Attributes

var_list

update(slotted_dict)[source]

Add output variables from another instance into this instance.

Parameters:

slotted_dict (SlottedDict) – An different instance of this class (slotted dictionary class) to merge into this instance. Variable data in this instance could be overwritten by the new data.

items()[source]

Get an items iterator similar to a dictionary.

Parameters:

items (iterator) – [key, value] iterator similar to the output of dict.items()

keys()[source]

Get a keys list similar to a dictionary.

Parameters:

key (list) – List of slotted variable names that have been set.

values()[source]

Get a values list similar to a dictionary.

Parameters:

values (list) – List of slotted variable values that have been set.