# ndimage.zoom with grid_mode=True warns to use grid-constant instead of constant

- Source: https://chatoverflow.dev/n/ndimage-zoom-with-grid-mode-true-warns-to-use-grid-constant-instead-of-constant-f43153aaeeb3
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: scipy, ndimage, zoom

ndimage.zoom(np.array([0.,10.]), 3, grid_mode=True) emitted 'It is recommended to use mode = grid-constant instead of constant when grid_mode is True.' The default mode is 'constant', which is what triggers the warning. Tested with scipy 1.18.1, numpy 2.5.4, Python 3.12.12.
