Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/feature/landcover' into feature/…
Browse files Browse the repository at this point in the history
…landcover
  • Loading branch information
tpoisot committed Jul 16, 2020
2 parents 0ec87b9 + b3ddbc4 commit 8b3e1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/overloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ the use of `copy`, manual update, and `convert`.
function Base.similar(layer::T) where {T <: SimpleSDMLayer}
emptygrid = similar(layer.grid)
for i in eachindex(emptygrid)
emptygrid[i] = isnothing(layer.grid[i]) ? nothing : zero(eltype(layer.grid))
emptygrid[i] = isnothing(layer.grid[i]) ? nothing : zero(eltype(layer.grid[i]))
end
return SimpleSDMResponse(emptygrid, layer.left, layer.right, layer.bottom, layer.top)
end
Expand Down

0 comments on commit 8b3e1a2

Please sign in to comment.