set_storage

safe_learning.utilities.set_storage(dictionary, name_value, index=None)

Set the storage point within a class method.

Parameters:
dictionary : dict
name_value : tuple

A list of tuples, where each tuple contains a string with the name of the storage object and the corresponding value that is to be put in storage. These are stored as OrderedDicts.

index : hashable

An index under which to store the element. Needs to be hashable. This is useful for functions which might be accessed with multiple different arguements.