We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861cc57 commit 16ccc78Copy full SHA for 16ccc78
2 files changed
xarray/backends/api.py
@@ -245,6 +245,9 @@ def _chunk_ds(
245
246
variables = {}
247
for name, var in backend_ds.variables.items():
248
+ if var._in_memory:
249
+ variables[name] = var
250
+ continue
251
var_chunks = _get_chunk(
252
var._data,
253
chunks,
xarray/namedarray/utils.py
@@ -215,7 +215,7 @@ def _get_chunk( # type: ignore[no-untyped-def]
215
from xarray.core.utils import emit_user_level_warning
216
from xarray.structure.chunks import _get_breaks_cached
217
218
- dims = dims or chunks.keys()
+ dims = chunks.keys() if dims is None else dims
219
shape = data.shape
220
221
# Determine the explicit requested chunks.
0 commit comments