Skip to content

Commit 3c284c6

Browse files
Fix chunking logic in recursive_copy function to handle single-row cases correctly.
1 parent c24b456 commit 3c284c6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

eopf_geozarr/conversion/geozarr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ def recursive_copy(
277277
data_shape[-2],
278278
data_shape[-1],
279279
)
280+
else:
281+
chunking = (1, data_shape[-1])
280282
encoding[var] = {
281283
"compressors": [compressor],
282284
"chunks": chunking

0 commit comments

Comments
 (0)