finch.data.chunk_args_equal(c1: Mapping[Hashable, int | tuple[int, ...] | None | 'auto'], c2: Mapping[Hashable, int | tuple[int, ...] | None | 'auto'], dim_sizes: Mapping[Hashable, int]) bool

Returns whether two xarray chunk arguments are equal. Auto and None chunk arguments will always be equal. If a dimension name is not present, its size will be interpreted as None.

Parameters:
c1 : Chunks

The first chunk argument

c2 : Chunks

The second chunk argument

dim_sizes : Mapping[Hashable, int]

The dimension sizes of the xarray datastructure for which c1 and c2 can be applied.