Skip to content

interp2d` is deprecated in SciPy 1.10 and will be removed in SciPy 1.12.0. #98

@scottstanie

Description

@scottstanie

Low priority, but let's change the iono.py interpolation code so we get rid of the DeprecationWarning

$ pytest

tests/test_ionex.py::test_get_ionex_value
  /Users/staniewi/repos/COMPASS/src/compass/utils/iono.py:156: DeprecationWarning: `interp2d` is deprecated!
  `interp2d` is deprecated in SciPy 1.10 and will be removed in SciPy 1.12.0.

  For legacy code, nearly bug-for-bug compatible replacements are
  `RectBivariateSpline` on regular grids, and `bisplrep`/`bisplev` for
  scattered 2D data.

  In new code, for regular grids use `RegularGridInterpolator` instead.
  For scattered data, prefer `LinearNDInterpolator` or
  `CloughTocher2DInterpolator`.

  For more details see
  `https://gist.github.com/ev-br/8544371b40f414b7eaf3fe6217209bff`

    tec_val = interpolate.interp2d(

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