Skip to content

Commit

Permalink
Fixed missing interface for compatibility with old pickles
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 9, 2015
1 parent d65da67 commit b989f20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def __setstate__(self, state):
self.data = NdElement(self.data, kdims=self.kdims,
vdims=self.vdims, group=self.group,
label=self.label)
self.interface = NdColumns
elif isinstance(self.data, np.ndarray):
self.interface = ArrayColumns
elif util.is_dataframe(self.data):
self.interface = DFColumns


def closest(self, coords):
Expand Down

0 comments on commit b989f20

Please sign in to comment.