Skip to content

Commit 7dc6581

Browse files
committed
debugging print statements
1 parent 53d6094 commit 7dc6581

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

xarray/backends/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def _chunk_ds(
323323
token = (None,)
324324
name_prefix = None
325325

326+
print(f"inside _chunk_ds chunks={chunks}")
327+
326328
variables = {}
327329
for name, var in backend_ds.variables.items():
328330
var_chunks = _get_chunk(var, chunks)

xarray/core/dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def _maybe_chunk(
282282
if chunks is not None:
283283
chunks = {dim: chunks[dim] for dim in var.dims if dim in chunks}
284284

285+
print(f"inside _maybe_chunk chunks={chunks}")
286+
285287
if var.ndim:
286288
chunked_array_type = guess_chunkmanager_name(chunked_array_type)
287289
if chunked_array_type == "dask":

xarray/core/variable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,8 @@ def chunk(
12411241
inline_array=inline_array,
12421242
)
12431243

1244+
print(f"inside variable.chunk chunks={chunks}")
1245+
12441246
data = chunkmanager.from_array(self._data, chunks, **_from_array_kwargs)
12451247

12461248
return self._replace(data=data)

0 commit comments

Comments
 (0)