Skip to content

Commit

Permalink
Merge pull request #964 from ioam/streams_set_fix
Browse files Browse the repository at this point in the history
Fixed bug with duplicate streams
  • Loading branch information
jlstevens authored Nov 1, 2016
2 parents e879523 + f516288 commit 4985475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ def get_nested_streams(dmap):
"""
layer_streams = list(dmap.streams)
if not isinstance(dmap.callback, Callable):
return layer_streams
return list(set(layer_streams))
for o in dmap.callback.inputs:
if isinstance(o, DynamicMap):
layer_streams += get_nested_streams(o)
return layer_streams
return list(set(layer_streams))


class DynamicMap(HoloMap):
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ def __init__(self, layout, keys=None, dimensions=None, **params):
self.traverse(lambda x: setattr(x, 'comm', self.comm))
nested_streams = layout.traverse(lambda x: get_nested_streams(x),
[DynamicMap])
self.streams = [s for streams in nested_streams for s in streams]
self.streams = list(set([s for streams in nested_streams for s in streams]))


def _get_frame(self, key):
Expand Down

0 comments on commit 4985475

Please sign in to comment.