JuliaMath / Interpolations.jl

Fast, continuous interpolation of discrete datasets in Julia
http://juliamath.github.io/Interpolations.jl/
Other
518 stars 110 forks source link

MethodError: no method matching Interpolations.Cubic() #593

Closed andreasvarga closed 4 months ago

andreasvarga commented 4 months ago

I performed recently the tests for the PeriodicSystems.jl package using Julia 10.2 on Linux (see here). The loaded version of the Interpolations.jl package is apparently v0.14 and the following error occurs under Linux:


MethodError: no method matching Interpolations.Cubic()

  Closest candidates are:
    Interpolations.Cubic(::BC) where BC<:Interpolations.BoundaryCondition
     @ Interpolations ~/.julia/packages/Interpolations/USkTk/src/b-splines/cubic.jl:2 

The offending line looks like

scale(interpolate(vec, BSpline(Cubic())), ts)

Running the same tests locally under Windows, the version v0.15.1 is (apparently) used and there is no error.

I wonder if the difference in the employed versions could explain this behaviour.

mkitti commented 4 months ago

Cubic() with no parameters was introduced in version 0.14.7. You are using version 0.14.0.

mkitti commented 4 months ago

See https://github.com/andreasvarga/PeriodicSystems.jl/pull/19

andreasvarga commented 4 months ago

Thanks. I will restrict even further to use only version v0.15 and Julia starting with v1.9.