Shift interpolation does not give expected behaviour
When using scipy.ndimage.interpolation.shift to shift a numpy data array along one axis with periodic boundary treatment ( mode = 'wrap' ), I get an unexpected behavior. The routine tries to force the first pixel ( index 0 ) to be identical to the last one ( index N-1 ) instead of the "last plus one ( index N )". Minimal example: # module import import numpy as np from scipy.ndimage.interpolation import shift import matplotlib.pyplot as plt # print scipy.__version__ # 0.18.1 a = range(10) plt.figure(figsize=(16,12)) for i, shift_pix in enumerate(range(10)): # shift the data via spline