ezmsg-org / ezmsg

Pure-Python DAG-based high-performance SHM-backed pub-sub and multi-processing pattern
https://ezmsg.readthedocs.io/en/latest/
MIT License
15 stars 6 forks source link

Add `step` arg to `sliding_win_oneaxis` #152

Closed cboulay closed 2 weeks ago

cboulay commented 3 weeks ago

This adds a step argument to sliding_win_oneaxis. The default 1 preserves existing behavior. When > 1, it will call slice_along_axis with slice(None, None, step).

My motivation for adding this is to make the function signature the same as the equivalent function I'm using for sparse arrays.

griffinmilsap commented 2 weeks ago

@cboulay Looks innocuous to me. Feel free to merge when you're ready :)