Skip to content

Commit 91b2967

Browse files
author
Joseph Hamman
committed
fix last chunk check
1 parent fff4355 commit 91b2967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray_schema/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def validate(
156156
if ec < 0:
157157
ec = dim_sizes[key]
158158
ac = dim_chunks[key]
159-
if not all(a == ec for a in ac[:-1]) or ac[-1] <= ec:
159+
if any([a != ec for a in ac[:-1]]) or ac[-1] > ec:
160160
raise SchemaError(f'{key} chunks did not match: {ac} != {ec}')
161161

162162
else: # assumes ec is an iterable

0 commit comments

Comments
 (0)