logic edits for copy

This commit is contained in:
Max Zwiessele 2014-03-03 15:07:33 +00:00
parent 441a9f524d
commit a98334e009
5 changed files with 144 additions and 138 deletions

View file

@ -114,14 +114,12 @@ class SparseGP(GP):
def _getstate(self):
"""
Get the current state of the class,
here just all the indices, rest can get recomputed
"""
return GP._getstate(self) + [self.Z,
self.num_inducing,
self.X_variance]
return GP._getstate(self) + [
self.Z,
self.num_inducing]
def _setstate(self, state):
self.X_variance = state.pop()
self.num_inducing = state.pop()
self.Z = state.pop()
GP._setstate(self, state)