window_funcs#
- property NDPositionsSlicer.window_funcs: dict[str, tuple[Callable[[ArrayLike, int, bool], ArrayLike] | None, int | float | None]]#
Get or set the per-slider-dim window functions applied around the current slider position,
{dim_name: (func, window_size)}, ex:{"time": (np.mean, 2.5)}.func must accept
axis: intandkeepdims: boolkwargs (ex:np.mean,np.max). It must return an array that has the same dims as the input, therefore the size of any dim along which it was applied should reduce to1. These dims must not be removed by the window func. window_size is in reference-space units (ex: 2.5 seconds).A window func is only applied for the dims listed in
window_order. Any dim without an entry is filled in with(None, None).