Skip to content

Commit

Permalink
Ensure DynamicMap.groupby casts to HoloMap before reindexing
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 11, 2017
1 parent 04fe072 commit 3c5afe2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions holoviews/core/spaces.py
Expand Up @@ -1034,7 +1034,9 @@ def inner_fn(*inner_key):
dim_vals = [(d.name, d.values) for d in inner_kdims]
dim_vals += [(d.name, [v]) for d, v in
zip(outer_kdims, util.wrap_tuple(outer_key))]
return group_type(self.select(**dict(dim_vals))).reindex(inner_kdims)
with item_check(False):
selected = HoloMap(self.select(**dict(dim_vals)))
return group_type(selected.reindex(inner_kdims))
if outer_kdims:
return self.clone([], callback=outer_fn, kdims=outer_kdims)
else:
Expand All @@ -1059,7 +1061,9 @@ def inner_fn(outer_vals, *key):
else:
inner_vals = [(d.name, self.get_dimension(d).values)
for d in inner_kdims]
group = group_type(self.select(**dict(outer_vals+inner_vals)).reindex(inner_kdims))
with item_check(False):
selected = HoloMap(self.select(**dict(outer_vals+inner_vals)))
group = group_type(selected.reindex(inner_kdims))
groups.append((outer, group))
return container_type(groups, kdims=outer_kdims)

Expand Down

0 comments on commit 3c5afe2

Please sign in to comment.