"platforms/reference/tests/TestReferenceNeighborList.cpp" did not exist on "1d7ac0e2fbbdc3072b7fe5e20b43cede7b2ea7c2"
Commit 60406edd authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Fixed state pickling in the python API.

parent 1486a99d
...@@ -77,8 +77,10 @@ class State(_object): ...@@ -77,8 +77,10 @@ class State(_object):
return serializationString return serializationString
def __setstate__(self, serializationString): def __setstate__(self, serializationString):
state = XmlSerializer.deserializeState(serializationString) print 'calling set state'
self.this = state.this dState = XmlSerializer.deserializeState(serializationString)
# Safe provided no __slots__ or other weird things are used
self.__dict__.update(dState.__dict__)
def getTime(self): def getTime(self):
"""Get the time for which this State was created.""" """Get the time for which this State was created."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment