Skip to content

Commit dc711d9

Browse files
rabernatkeewis
andcommitted
Apply suggestions from code review
Co-authored-by: keewis <[email protected]>
1 parent 8c86960 commit dc711d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/backends/zarr.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ def _determine_zarr_chunks(enc_chunks, var_chunks, ndim, name, safe_chunks):
167167
base_error = (
168168
f"Specified zarr chunks encoding['chunks']={enc_chunks_tuple!r} for "
169169
f"variable named {name!r} would overlap multiple dask chunks {var_chunks!r}. "
170-
f"Writing this array in parallel with dask could lead to corrupted data. "
170+
f"Writing this array in parallel with dask could lead to corrupted data."
171171
)
172172
if safe_chunks:
173173
raise NotImplementedError(
174174
base_error
175-
+ "Consider either rechunking using `chunk()`, deleting "
175+
+ " Consider either rechunking using `chunk()`, deleting "
176176
"or modifying `encoding['chunks']`, or specify `safe_chunks=False`."
177177
)
178178
if dchunks[-1] > zchunk:
@@ -187,7 +187,7 @@ def _determine_zarr_chunks(enc_chunks, var_chunks, ndim, name, safe_chunks):
187187
if safe_chunks:
188188
raise NotImplementedError(
189189
base_error
190-
+ "Consider either rechunking using `chunk()`, deleting "
190+
+ " Consider either rechunking using `chunk()`, deleting "
191191
"or modifying `encoding['chunks']`, or specify `safe_chunks=False`."
192192
)
193193
return enc_chunks_tuple

0 commit comments

Comments
 (0)