Skip to content

Commit

Permalink
🦆 correct overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot committed Feb 13, 2023
1 parent 10fb769 commit bc018bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/SpeciesDistributionToolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ end
# adding this method makes the code easier to write
Base.isnan(::Nothing) = false

function SimpleSDMPredictor(W::T) where {T <: LatticeWomble}
function SimpleSDMLayers.SimpleSDMPredictor(W::T) where {T <: LatticeWomble}
rate = SimpleSDMLayers.SimpleSDMPredictor(W.m, extrema(W.y)..., extrema(W.x)...)
direction = SimpleSDMLayers.SimpleSDMPredictor(W.θ, extrema(W.y)..., extrema(W.x)...)
rate.grid[findall(isnan, rate.grid)] .= nothing
direction.grid[findall(isnan, direction.grid)] .= nothing
return (rate, direction)
end

function SimpleSDMResponse(W::T) where {T <: LatticeWomble}
function SimpleSDMLayers.SimpleSDMResponse(W::T) where {T <: LatticeWomble}
return convert.(SimpleSDMLayers.SimpleSDMResponse, SimpleSDMLayers.SimpleSDMPredictor(W))
end

0 comments on commit bc018bf

Please sign in to comment.