Skip to content

Commit

Permalink
fix remaining depwarn (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero authored and timholy committed Aug 19, 2018
1 parent b8179fd commit 920947d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/imfilter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ function _imfilter_inplace_tuple!(r, out, img, kernel, Rbegin, inds, Rend, borde
out,
out,
tail(kernel),
CartesianIndices(Rbegin.indices..., ind),
CartesianIndices((Rbegin.indices..., ind)),
tail(inds),
_tail(Rend),
border)
Expand Down
6 changes: 6 additions & 0 deletions test/triggs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ using Test
imfilter!(CPU1(Algorithm.IIR()), out, imgf, KernelFactors.IIRGaussian(σ), 2, "replicate")
@test out == ret

# for code coverage
# TODO: make into an actual test
kerng = KernelFactors.IIRGaussian(σ)
kern = (kerng,kerng)
imfilter(imgf, kern, NA())

# When the image has NaNs
imgfnan = copy(imgf)
imgfnum = copy(imgf)
Expand Down

0 comments on commit 920947d

Please sign in to comment.