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:
serializationdict

A dictionary generated by serialize().

Returns:
instanceobject

An instance in the state given by serialization.