Skip to content

Commit

Permalink
Defer NumPy function calls to method on data
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 6, 2020
1 parent 6e83b97 commit cb634cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions holoviews/util/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ def apply(self, dataset, flat=False, expanded=None, ranges={}, all_values=False,
for o in self.ops:
args = o['args']
fn = o['fn']
fn_name = self._numy_funcs.get(fn)
if fn_name and hasattr(data, fn_name):
fn = fn_name
fn_args = [] if isinstance(fn, basestring) else [data]
for arg in args:
if isinstance(arg, dim):
Expand Down

0 comments on commit cb634cb

Please sign in to comment.