Skip to content

Commit f6a5b09

Browse files
committed
Simplify specification of depth
1 parent 1d2d878 commit f6a5b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgkit/window.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def blockwise_moving_stat(x: ArrayLike, block_info: Any = None) -> ArrayLike:
164164
new_chunks = (tuple(windows_per_chunk),)
165165
else:
166166
# depth is 0 except in first axis
167-
depth = tuple([depth] + ([0] * (values.ndim - 1)))
167+
depth = {0: depth}
168168
# new chunks are same except in first axis
169169
new_chunks = tuple([tuple(windows_per_chunk)] + list(values.chunks[1:])) # type: ignore
170170
return values.map_overlap(

0 commit comments

Comments
 (0)