Skip to content

Commit

Permalink
Simplified Dynamic overlaying
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 17, 2017
1 parent 048642f commit 521f7be
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions holoviews/core/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,11 @@ def dynamic_mul(*key, **kwargs):
key_map = {d.name: k for d, k in zip(dimensions, key)}
layers = []
try:
if isinstance(self, DynamicMap):
if self.kdims:
self_el = self.select(**key_map)
else:
self_el = self[()]
if self_el is not None:
layers.append(self_el)
else:
layers.append(self[key])
self_el = self.select(**key_map) if self.kdims else self[()]
except KeyError:
pass
try:
if isinstance(other, DynamicMap):
if other.kdims:
other_el = other.select(**key_map)
else:
other_el = other[()]
if other_el is not None:
layers.append(other_el)
else:
layers.append(other[key])
other_el = other.select(**key_map) if other.kdims else other[()]
except KeyError:
pass
return Overlay(layers)
Expand Down

0 comments on commit 521f7be

Please sign in to comment.