Skip to content

Commit

Permalink
Fix __reduce__ of TDigest to work with pickle/Spark broadacast (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTaws authored Jan 28, 2021
1 parent 045da6a commit 279af3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/isarnproject/sketches/spark/tdigest.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def isEmpty(self):
return len(self._cent) == 0

def __reduce__(self):
return (self.__class__, (self.compression, self.maxDiscrete, self.nclusters, self._cent, self._mass, ))
return (self.__class__, (self.compression, self.maxDiscrete, self._cent, self._mass, ))

def _lmcovj(self, m):
assert self.nclusters >= 2
Expand Down

0 comments on commit 279af3b

Please sign in to comment.