Skip to content

Commit

Permalink
Logging update to xarray_beam.validate_zarr_chunk. Log the key when…
Browse files Browse the repository at this point in the history
… chunks do not match.

PiperOrigin-RevId: 688717778
  • Loading branch information
langmore authored and Xarray-Beam authors committed Oct 23, 2024
1 parent f5a40db commit b0693db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray_beam/_src/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def validate_zarr_chunk(
if not expected_index.equals(actual_index):
raise ValueError(
f'template and chunk indexes do not match for dim {dim!r}:\n'
f'{expected_index}\nvs.\n{actual_index}'
f'{expected_index}\nvs.\n{actual_index}\n{key=}.'
)

if zarr_chunks is None:
Expand Down

0 comments on commit b0693db

Please sign in to comment.