Skip to content

Commit

Permalink
Avoid using wraps in dask_array_compat (pydata#2053)
Browse files Browse the repository at this point in the history
This code led to a bug upstream in dask.

The simplest choice is to remove it since we don't need docstrings for this function as used internally in xarray:
dask/dask#3388
  • Loading branch information
shoyer authored Apr 14, 2018
1 parent a9d1f3a commit 295dd20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xarray/core/dask_array_compat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import absolute_import, division, print_function

from functools import wraps
import numpy as np
import dask.array as da

Expand All @@ -15,7 +14,6 @@ def _isin_kernel(element, test_elements, assume_unique=False):
assume_unique=assume_unique)
return values.reshape(element.shape + (1,) * test_elements.ndim)

@wraps(getattr(np, 'isin', None))
def isin(element, test_elements, assume_unique=False, invert=False):
element = da.asarray(element)
test_elements = da.asarray(test_elements)
Expand Down

0 comments on commit 295dd20

Please sign in to comment.