Skip to content

Commit e628413

Browse files
langmoreXarray-Beam authors
authored and
Xarray-Beam authors
committed
--index_on_timedelta FLAG added to convert_init_to_valid_time.py.
``` INDEX_ON_TIMEDELTA = flags.DEFINE_boolean( 'index_on_timedelta', True, help=( 'Whether to index the output on the timedelta (and drop initial time).' ' If False, index on the initial time axis (and drop the timedelta).' ), ) ``` PiperOrigin-RevId: 686675196
1 parent f5a40db commit e628413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray_beam/_src/zarr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def validate_zarr_chunk(
310310
if not expected_index.equals(actual_index):
311311
raise ValueError(
312312
f'template and chunk indexes do not match for dim {dim!r}:\n'
313-
f'{expected_index}\nvs.\n{actual_index}'
313+
f'{expected_index}\nvs.\n{actual_index}\n{key=}.'
314314
)
315315

316316
if zarr_chunks is None:

0 commit comments

Comments
 (0)