fix deprecation warning in simple linear interpolation