Skip to content

Commit 46ad9ec

Browse files
committed
Fix import (see PR #9)
1 parent 7af1b0e commit 46ad9ec

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# New features and user visible changes in branch 2.0
22

3+
* Fix import of unused function that has been removed (see PR #9).
4+
35
## Version 2.0.0
46

57
Version 2 of `LocalFilters` better integrates in the Julia ecosystem as fewer

src/LocalFilters.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export
4242
top_hat
4343

4444
using OffsetArrays, StructuredArrays, EasyRanges
45-
using EasyRanges: ranges, to_int
45+
using EasyRanges: ranges
4646
using Base: @propagate_inbounds, tail, OneTo
4747

4848
function localfilter end

src/utils.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Base.IndexStyle(::Type{<:Indices{S}}) where {S} = S()
1717
# `Indices` objects can be called like `eachindex` to yield the indices of an
1818
# array (see `abstractarray.jl`).
1919
@inline (::Indices{IndexLinear})(A::AbstractArray) = OneTo{Int}(length(A))
20-
@inline (::Indices{IndexLinear})(A::AbstractVector) = to_int(Base.axes1(A))
20+
@inline (::Indices{IndexLinear})(A::AbstractVector) = AbstractUnitRange{Int}(Base.axes1(A))
2121
@inline (::Indices{IndexCartesian})(A::AbstractArray) = CartesianIndices(A)
2222

2323
@inline (I::Indices)(A::AbstractArray, B::AbstractArray) =
@@ -540,7 +540,7 @@ function ball(::Type{Dims{N}}, radius::Real) where {N}
540540
return arr
541541
end
542542

543-
@deprecate ball(N::Integer, radius::Real) ball(Dims{to_int(N)}, radius) false
543+
@deprecate ball(N::Int, radius::Real) ball(Dims{N}, radius) false
544544

545545
@inline function _ball!(arr::AbstractArray{Bool,N},
546546
q::Int, qmax::Int, r::Int,

0 commit comments

Comments
 (0)