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 35d4676 commit 87bd449Copy full SHA for 87bd449
xarray_schema/core.py
@@ -72,10 +72,11 @@ def validate(self, da: xr.DataArray) -> xr.DataArray:
72
------
73
SchemaError
74
'''
75
- if da.chunks:
76
- assert _check_regular_chunks(da.chunks), 'Good gracious no! Chunks are not regular!'
77
if not isinstance(da, xr.DataArray):
78
raise ValueError('Input must be a xarray.DataArray')
+
+ if da.chunks:
79
+ assert _check_regular_chunks(da.chunks), 'Good gracious no! Chunks are not regular!'
80
81
if self.dtype is not None and not np.issubdtype(da.dtype, self.dtype):
82
raise SchemaError(f'dtype {da.dtype} != {self.dtype}')
0 commit comments