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.
1 parent 10416d4 commit 37ecca9Copy full SHA for 37ecca9
xarray_schema/core.py
@@ -109,7 +109,7 @@ def validate(self, da: xr.DataArray) -> xr.DataArray:
109
for key, ec in self.chunks.items():
110
if isinstance(ec, int):
111
# handles case of expected chunksize is shorthand of -1 which translates to the full length of dimension
112
- if ec==-1:
+ if ec < 0:
113
ec = len(da[key])
114
# grab the first entry in da's tuple of chunks to be representative (as it should be assuming they're regular)
115
ac = dim_chunks[key][0]
0 commit comments