Serialization¶
- pathsim.utils.serialization.serialize_callable(func)[source]¶
Serialize a callable with priority for human-readable formats
- Parameters:
func (callable) – function to serialize into dict
- Returns:
serialized function
- Return type:
- pathsim.utils.serialization.serialize_object(obj)[source]¶
Serialize any object by capturing its module and class
- pathsim.utils.serialization.deserialize(data)[source]¶
Deserialize an object from dictionary representation
- class pathsim.utils.serialization.Serializable[source]¶
Bases:
objectMixin that provides automatic serialization based on __init__ parameters and loading/saving to json formatted readable files
- classmethod load(path='', **kwargs)[source]¶
Load and instantiate an object from an external file in json format