Skip to content

Commit

Permalink
Use partial
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Oct 5, 2023
1 parent 5d379c7 commit ebfd562
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,10 +1388,9 @@ def exceeds_aggregation_threshold(plot):
return data_size > self.aggregation_threshold

if self.aggregation_threshold is not None:
operation_instance = operation.instance(**opts)
processed = apply_when(
obj,
operation=operation_instance,
operation=partial(operation, **opts),
predicate=exceeds_aggregation_threshold
)
else:
Expand Down

0 comments on commit ebfd562

Please sign in to comment.