Skip to content

Commit

Permalink
--index_on_timedelta FLAG added to convert_init_to_valid_time.py.
Browse files Browse the repository at this point in the history
```
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
  • Loading branch information
langmore authored and Xarray-Beam authors committed Oct 22, 2024
1 parent f5a40db commit 6b4749d
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}, and {key}.'
)

if zarr_chunks is None:
Expand Down

0 comments on commit 6b4749d

Please sign in to comment.