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 39dc4e1 commit d0229c5Copy full SHA for d0229c5
kaleidoscope/operators/randomizeop.py
@@ -46,6 +46,8 @@ def run(self, source: Dataset) -> Dataset: # noqa: D102
46
for name, array in source.data_vars.items():
47
if array.dtype.kind != "f":
48
continue
49
+ if array.ndim < 1:
50
+ continue
51
f = Randomize(array.dtype, array.ndim, array.ndim)
52
source[name] = DataArray(
53
data=f.apply_to(array.data, test=self._args.test),
0 commit comments