File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 10
10
from .core import duck_array_ops
11
11
from .core .dataarray import DataArray
12
12
from .core .dtypes import get_fill_value
13
+ from .core .pycompat import dask_array_type
13
14
14
15
cdms2_ignored_attrs = {"name" , "tileIndex" }
15
16
iris_forbidden_keys = {
@@ -255,8 +256,6 @@ def from_iris(cube):
255
256
"""
256
257
import iris .exceptions
257
258
258
- from xarray .core .pycompat import is_duck_dask_array
259
-
260
259
name = _name (cube )
261
260
if name == "unknown" :
262
261
name = None
@@ -291,7 +290,7 @@ def from_iris(cube):
291
290
cube_data = cube .core_data () if hasattr (cube , "core_data" ) else cube .data
292
291
293
292
# Deal with dask and numpy masked arrays
294
- if is_duck_dask_array (cube_data ):
293
+ if isinstance (cube_data , dask_array_type ):
295
294
from dask .array import ma as dask_ma
296
295
297
296
filled_data = dask_ma .filled (cube_data , get_fill_value (cube .dtype ))
You can’t perform that action at this time.
0 commit comments