Skip to content
Snippets Groups Projects
Commit 9f44190e authored by Stefano Borini's avatar Stefano Borini
Browse files

Adding getstate to event

parent 556ba93e
No related branches found
No related tags found
1 merge request!187Propagate data values in MCO events
......@@ -33,3 +33,9 @@ class MCOProgressEvent(BaseDriverEvent):
#: The weights assigned to the KPIs
weights = List(Float())
def __getstate__(self):
d = super().__getstate__()
d["optimal_point"] = [dv.__getstate__() for dv in d["optimal_point"]]
d["optimal_kpis"] = [dv.__getstate__() for dv in d["optimal_kpis"]]
return d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment