fix_ndimage_mode

sofia_redux.toolkit.image.utilities.fix_ndimage_mode(mode)[source]

Allow translation of modes for scipy versions >= 1.6.0

SciPy 1.6.0 introduced grid variants of constant and wrap which have less surprising behavior for images. Use these when available

Parameters:
modestr

The ndimage mode that may need to be fixed depending on the SciPy version.

Returns:
ndimage_modestr