update_frame_slider_range#
- movement.napari.layer_wiring.update_frame_slider_range(viewer, event=None)[source]#
Widen the frame slider range to cover NaN-trimmed frames.
napari derives
viewer.dims.rangefrom the world-coordinate union of all layer extents, and it does so before this callback runs. Movement’s layers have their leading/trailing all-NaN rows dropped, so a dataset that starts or ends with NaNs yields an extent — and therefore a slider range — narrower than the real frame span.Extend napari’s range to cover the true span of every movement layer, but never replace it: layers movement did not create (a video the user opened, another plugin’s layer) keep the range napari computed for them, including any scale or translate they carry.