Skip to content

Commit

Permalink
Cope with references for scalar arrays (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Jan 2, 2024
1 parent b0cda31 commit ac589d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def _get_chunk_sizes(self, field):
size_ratio = [
math.ceil(s / c) for s, c in zip(zarray["shape"], zarray["chunks"])
]
self.chunk_sizes[field] = size_ratio
self.chunk_sizes[field] = size_ratio or [1]
return self.chunk_sizes[field]

def _generate_record(self, field, record):
Expand Down

0 comments on commit ac589d8

Please sign in to comment.