Skip to content

Commit 60db7b0

Browse files
committed
Compat ver
1 parent 84eaa96 commit 60db7b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FFTW = "1"
1818
Interpolations = "0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15"
1919
StatsBase = "0.33, 0.34"
2020
julia = "1"
21-
Compat = "3.22, 4"
21+
Compat = "2.2.0, 4"
2222

2323
[extras]
2424
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/interp.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Compat: @compat
1+
import Compat: eachslice
22
import Interpolations: interpolate, scale
33

44

@@ -32,7 +32,7 @@ InterpKDE(kde::BivariateKDE) = InterpKDE(kde::BivariateKDE, BSpline(Quadratic(Li
3232
# any dimension
3333
pdf(ik::InterpKDE,x::Real...) = ik.itp(x...)
3434
pdf(ik::InterpKDE, V::AbstractVector) = ik.itp(V...)
35-
pdf(ik::InterpKDE, M::AbstractArray{<:Real, N}) where N = @compat pdf.(ik,eachslice(M, dims=ntuple(i->i+1, N-1)) )
35+
pdf(ik::InterpKDE, M::AbstractArray{<:Real, N}) where N = pdf.(ik,eachslice(M, dims=ntuple(i->i+1, N-1)) )
3636

3737
# 1 dimension
3838
pdf(k::UnivariateKDE,x) = pdf(InterpKDE(k),x)

0 commit comments

Comments
 (0)