Skip to content

Commit 3cadd53

Browse files
committed
commented-out code indicating problem with chunk normalization
1 parent 2cce6a0 commit 3cadd53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xarray/namedarray/core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,12 @@ def chunk(
821821

822822
data_old = self._data
823823
if is_chunked_array(data_old):
824+
print(f"problematic chunks = {chunks}")
825+
# if is_dict_like(chunks) and chunks != {}:
826+
# chunks = tuple(chunks.get(n, s) for n, s in enumerate(data_old.shape)) # type: ignore[assignment]
827+
828+
print(f"hopefully normalized chunks = {chunks}")
829+
824830
# Assume any chunked array supports .rechunk - if it doesn't then at least a clear AttributeError will be raised.
825831
# Deliberately don't go through the chunkmanager so as to support chunked array types that don't need all the special computation methods.
826832
# See GH issue #8733

0 commit comments

Comments
 (0)