Skip to content

interp2d` has been removed in SciPy 1.14.0. #3

Description

@bastienqueste

Suggest replacing with "RegularGridInterpolator"

Traceback (most recent call last):
  File "/srv/common/kitchensink/SPASSO/src/Spasso.py", line 141, in <module>
    if (spasso() == 0):
        ^^^^^^^^
  File "/srv/common/kitchensink/SPASSO/src/Spasso.py", line 88, in spasso
    Diagnostics.Launch(cruise,'eulerian')
  File "/srv/common/kitchensink/SPASSO/src/Diagnostics.py", line 1041, in Launch
    out,dout = Eulerian(field,dayv[nf]).diag(diag=GlobalVars.Eul['diag'],
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/common/kitchensink/SPASSO/src/Diagnostics.py", line 863, in diag
    if i == 'KE' and hasattr(self,'u'): dd = self.KE(**kwargs), dout.append(i)
                                             ^^^^^^^^^^^^^^^^^
  File "/srv/common/kitchensink/SPASSO/src/Diagnostics.py", line 899, in KE
    fu = interp2d(lon0,lat0,u_nonan, kind='cubic')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/tljh/user/lib/python3.12/site-packages/scipy/interpolate/_interpolate.py", line 129, in __init__
    raise NotImplementedError(err_mesg)
NotImplementedError: `interp2d` has been removed in SciPy 1.14.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions