We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f7dd7e + 37ecca9 commit 9f1e42cCopy full SHA for 9f1e42c
xarray_schema/core.py
@@ -112,7 +112,7 @@ def validate(self, da: xr.DataArray) -> xr.DataArray:
112
for key, ec in self.chunks.items():
113
if isinstance(ec, int):
114
# handles case of expected chunksize is shorthand of -1 which translates to the full length of dimension
115
- if ec == -1:
+ if ec < 0:
116
ec = dim_sizes[key]
117
# grab the first entry in da's tuple of chunks to be representative (as it should be assuming they're regular)
118
ac = dim_chunks[key][0]
0 commit comments