Skip to content

Commit

Permalink
Minor fixes for apply_when (#4389)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 22, 2020
1 parent 7499b42 commit 32b1782
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions holoviews/operation/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ def _apply(self, element, x_range, y_range, invert=False):
return selected.iloc[:0]

def __call__(self, obj, **params):
self.set_param(**params)
streams = [RangeXY()]
if 'streams' in params:
streams = params.pop('streams')
else:
streams = [RangeXY()]
self.param.set_param(**params)
if not self.predicate:
raise ValueError(
'Must provide a predicate function to determine when '
Expand Down

0 comments on commit 32b1782

Please sign in to comment.