Skip to content

Commit 9f1e42c

Browse files
committed
merging remote fixes
2 parents 8f7dd7e + 37ecca9 commit 9f1e42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray_schema/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def validate(self, da: xr.DataArray) -> xr.DataArray:
112112
for key, ec in self.chunks.items():
113113
if isinstance(ec, int):
114114
# handles case of expected chunksize is shorthand of -1 which translates to the full length of dimension
115-
if ec == -1:
115+
if ec < 0:
116116
ec = dim_sizes[key]
117117
# grab the first entry in da's tuple of chunks to be representative (as it should be assuming they're regular)
118118
ac = dim_chunks[key][0]

0 commit comments

Comments
 (0)