Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug with duplicate streams #964

Merged
merged 1 commit into from
Nov 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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