serializable module¶
The baseclass for serializable GEMSEO objects.
- class gemseo.core.serializable.Serializable[source]
Bases:
objectBase class to handle serialization of GEMSEO objects.
The methods
__setstate__and__getstate__used by pickle to serialize and de-serialize objects are overloaded to handleSynchronizedattributes. It is also possible to define the attributes that shall be ignored at serialization.For the attributes that are ignored at serialization, it is necessary to handle the way they are retrieved and recreated by overloading
__setstate__and/or__getstate__from the subclasses.
Examples using Serializable¶
Compute the Jacobian of a discipline with finite differences
Compute the Jacobian of a discipline with finite differences