Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Sep 29, 2023
1 parent ba9046f commit 7e4c13d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/interpneighbors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ InterpolateNeighbors(
InterpolateNeighbors(geoms::AbstractVector{<:Geometry}, selectors, models; kwargs...) =
InterpolateNeighbors(GeometrySet(geoms), selectors, models; kwargs...)

InterpolateNeighbors(domain::Domain, model::GeoStatsModel=IDW(); kwargs...) =
InterpolateNeighbors(domain, model::GeoStatsModel=IDW(); kwargs...) =
InterpolateNeighbors(domain, [AllSelector()], [model]; kwargs...)

InterpolateNeighbors(domain::Domain, pairs::Pair{<:Any,<:GeoStatsModel}...; kwargs...) =
InterpolateNeighbors(domain, pairs::Pair{<:Any,<:GeoStatsModel}...; kwargs...) =
InterpolateNeighbors(domain, selector.(first.(pairs)), last.(pairs); kwargs...)

isrevertible(::Type{<:InterpolateNeighbors}) = false
Expand Down
4 changes: 2 additions & 2 deletions src/interpolate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Interpolate(domain::Domain, selectors, models; point=true, prob=false) =
Interpolate(geoms::AbstractVector{<:Geometry}, selectors, models; kwargs...) =
Interpolate(GeometrySet(geoms), selectors, models; kwargs...)

Interpolate(domain::Domain, model::GeoStatsModel=IDW(); kwargs...) =
Interpolate(domain, model::GeoStatsModel=IDW(); kwargs...) =
Interpolate(domain, [AllSelector()], [model]; kwargs...)

Interpolate(domain::Domain, pairs::Pair{<:Any,<:GeoStatsModel}...; kwargs...) =
Interpolate(domain, pairs::Pair{<:Any,<:GeoStatsModel}...; kwargs...) =
Interpolate(domain, selector.(first.(pairs)), last.(pairs); kwargs...)

isrevertible(::Type{<:Interpolate}) = false
Expand Down

0 comments on commit 7e4c13d

Please sign in to comment.