MCPcopy
hub / github.com/pydata/xarray / is_chunked_array

Function is_chunked_array

xarray/namedarray/pycompat.py:91–92  ·  view source on GitHub ↗
(x: duckarray[Any, Any])

Source from the content-addressed store, hash-verified

89
90
91def is_chunked_array(x: duckarray[Any, Any]) -> bool:
92 return is_duck_dask_array(x) or (is_duck_array(x) and hasattr(x, "chunks"))
93
94
95def is_0d_dask_array(x: duckarray[Any, Any]) -> bool:

Callers 15

__init__Method · 0.90
factorizeMethod · 0.90
factorizeMethod · 0.90
encode_cf_datetimeFunction · 0.90
encode_cf_timedeltaFunction · 0.90
__init__Method · 0.90
lazy_elemwise_funcFunction · 0.90
bytes_to_charFunction · 0.90
char_to_bytesFunction · 0.90
get_chunked_array_typeFunction · 0.90
loadMethod · 0.90

Calls 2

is_duck_dask_arrayFunction · 0.90
is_duck_arrayFunction · 0.90

Tested by 1

test_multiple_groupersFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…