As the title states, np.complex has been deprecated and using griddata on numpy 1.25 raises an exception. Here is the link to the deprecation note: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations