Skip to content

Commit

Permalink
Dynamic operations only pass Operation params
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 10, 2016
1 parent 996b672 commit 6a7fe48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion holoviews/util.py
Expand Up @@ -53,7 +53,9 @@ def __call__(self, map_obj, **params):

def _process(self, element, key=None):
if isinstance(self.p.operation, ElementOperation):
return self.p.operation.process_element(element, key, **self.p.kwargs)
kwargs = {k: v for k, v in self.p.kwargs
if k in self.p.operation.params()}
return self.p.operation.process_element(element, key, **kwargs)
else:
return self.p.operation(element, **self.p.kwargs)

Expand Down

0 comments on commit 6a7fe48

Please sign in to comment.