I was using the method scipy.ndimage.map_coordinates, and it seemed to work fine in my code. However, when I called it from another method, it gave me a RuntimeError: co