Skip to content

Commit ac589d8

Browse files
authored
Cope with references for scalar arrays (fsspec#1487)
1 parent b0cda31 commit ac589d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/implementations/reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def _get_chunk_sizes(self, field):
316316
size_ratio = [
317317
math.ceil(s / c) for s, c in zip(zarray["shape"], zarray["chunks"])
318318
]
319-
self.chunk_sizes[field] = size_ratio
319+
self.chunk_sizes[field] = size_ratio or [1]
320320
return self.chunk_sizes[field]
321321

322322
def _generate_record(self, field, record):

0 commit comments

Comments
 (0)