openmmtools.utils.deserialize¶
-
openmmtools.utils.deserialize(serialization)[source]¶ Deserialize an object.
The original class must expose a __setstate__ that takes the dictionary representation of its state generated by its __getstate__.
Parameters: - serialization : dict
A dictionary generated by serialize().
Returns: - instance : object
An instance in the state given by serialization.