Skip to content

Commit bf8d22f

Browse files
maxrjoneskeewis
andauthored
Apply suggestions from code review
Co-authored-by: Justus Magin <keewis@users.noreply.github.com>
1 parent 163abce commit bf8d22f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xarray/backends/zarr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,14 @@ def _determine_zarr_chunks(enc_chunks, var_chunks, ndim, name, zarr_format):
326326

327327
if any(len(set(chunks[:-1])) > 1 for chunks in var_chunks):
328328
raise ValueError(
329-
"Zarr v2 requires uniform chunk sizes except for final chunk. "
329+
"Zarr v2 requires uniform chunk sizes except for the final chunk. "
330330
f"Variable named {name!r} has incompatible dask chunks: {var_chunks!r}. "
331331
"Consider rechunking using `chunk()`, or switching to the "
332332
"zarr v3 format with zarr-python>=3.2."
333333
)
334334
if any((chunks[0] < chunks[-1]) for chunks in var_chunks):
335335
raise ValueError(
336-
"Final chunk of a Zarr v2 array or a Zarr v3 array without the "
336+
"The final chunk of a Zarr v2 array or a Zarr v3 array without the "
337337
"rectilinear chunks extension must be the same size or smaller "
338338
f"than the first. Variable named {name!r} has incompatible Dask "
339339
f"chunks {var_chunks!r}. "

0 commit comments

Comments
 (0)