serializable module¶
The baseclass for serializable GEMSEO objects.
- class gemseo.core.serializable.Serializable[source]
Bases:
object
Base class to handle serialization of GEMSEO objects.
The methods
__setstate__
and__getstate__
used by pickle to serialize and de-serialize objects are overloaded to handleSynchronized
attributes. 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¶
Examples for constraint aggregation
A from scratch example on the Sellar problem
Error from surrogate discipline
MDAChain with independent parallel MDAs
Check the Jacobian of a discipline
Compute the Jacobian of a discipline analytically
Compute the Jacobian of a discipline with finite differences
Create a discipline from an external executable
Create a discipline that uses pandas DataFrames
Rename the input and output variables