Skip to content

Commit

Permalink
Merge branch 'main' into Heatmap_IndexError_Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Dec 20, 2024
2 parents b79b24f + 0d97cb0 commit 25f9735
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions holoviews/core/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,12 @@ def __call__(self):
raise ValueError("Collator values must be Dimensioned objects "
"before collation.")

dim_keys = zip(self.kdims, key)
varying_keys = [(d, k) for d, k in dim_keys if not self.drop_constant or
varying_keys = [(d, k) for d, k in zip(self.kdims, key) if not self.drop_constant or
(d not in constant_dims and d not in self.drop)]
constant_keys = [(d, k) for d, k in dim_keys if d in constant_dims
and d not in self.drop and self.drop_constant]
constant_keys = {d: k for d, k in zip(self.kdims, key) if d in constant_dims
and d not in self.drop and self.drop_constant}
if varying_keys or constant_keys:
data = self._add_dimensions(data, varying_keys,
dict(constant_keys))
data = self._add_dimensions(data, varying_keys, constant_keys)
ndmapping[key] = data
if self.progress_bar is not None:
self.progress_bar(float(idx+1)/num_elements*100)
Expand Down

0 comments on commit 25f9735

Please sign in to comment.