Skip to content

Commit a40fd8b

Browse files
committed
fix Pickleability
1 parent a36cd2d commit a40fd8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

histogrammar/defs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ def fill(self, datum, weight=1.0):
151151
"""
152152
raise NotImplementedError
153153

154+
def __getstate__(self):
155+
state = dict(self.__dict__)
156+
del state["fill"]
157+
return state
158+
154159
def copy(self):
155160
"""Copy this container, making a clone with no reference to the original. """
156161
return self + self.zero()

0 commit comments

Comments
 (0)