Skip to content

Commit 1dae6a3

Browse files
Require Julia v1.10 or later (#575)
* Require Julia v1.10 or later * Remove `Compat` from dependencies
1 parent 04e4593 commit 1dae6a3

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
version: '1'
3535
- os: ubuntu-latest
3636
arch: x64
37-
version: '1.6'
37+
version: '1.10'
3838
- os: ubuntu-latest
3939
arch: x64
4040
version: 'pre'
@@ -46,8 +46,6 @@ jobs:
4646
version: ${{ matrix.version }}
4747
arch: ${{ matrix.arch }}
4848
- uses: julia-actions/cache@v2
49-
with:
50-
cache-registries: ${{ !(matrix.version == '1.6' && matrix.os == 'windows-latest') }}
5149
- uses: julia-actions/julia-buildpkg@v1
5250
- uses: julia-actions/julia-runtest@v1
5351
- uses: julia-actions/julia-processcoverage@v1

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.8.0"
44

55
[deps]
66
Bessels = "0e736298-9ec6-45e8-9647-e4fc86a2fe38"
7-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
87
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
98
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
109
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -16,7 +15,6 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1615

1716
[compat]
1817
Bessels = "0.2"
19-
Compat = "4.1"
2018
DelimitedFiles = "1.6"
2119
FFTW = "1.8"
2220
IterTools = "1.4"
@@ -28,7 +26,7 @@ Reexport = "1.0"
2826
SpecialFunctions = "2.0"
2927
Statistics = "1.6"
3028
Test = "1.6"
31-
julia = "1.6"
29+
julia = "1.10"
3230

3331
[extras]
3432
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"

src/DSP.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module DSP
33
using FFTW
44
using LinearAlgebra: mul!, rmul!
55
using IterTools: subsets
6-
using Compat: Compat
76

87
export conv, deconv, filt, filt!, xcorr
98

src/Filters/Filters.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ using Statistics: middle
99
using SpecialFunctions: ellipk
1010
using ..DSP: optimalfftfiltlength, os_fft_complexity, SMALL_FILT_CUTOFF
1111
import ..DSP: filt, filt!
12-
using Compat: Compat
1312
using FFTW
1413

1514
include("coefficients.jl")

src/Filters/design.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Butterworth(::Type{T}, n::Integer) where {T<:Real}
1414
poles = Vector{Complex{T}}(undef, n)
1515
for i = 1:n÷2
1616
w = convert(T, 2i - 1) / 2n
17-
sinpi_w, cospi_w = Compat.@inline sincospi(w)
17+
sinpi_w, cospi_w = @inline sincospi(w)
1818
pole = complex(-sinpi_w, cospi_w)
1919
poles[2i-1] = pole
2020
poles[2i] = conj(pole)
@@ -43,7 +43,7 @@ function chebyshev_poles(::Type{T}, n::Integer, ε::Real) where {T<:Real}
4343
c = cosh(μ)
4444
for i = 1:n÷2
4545
w = convert(T, 2i - 1) / 2n
46-
sinpi_w, cospi_w = Compat.@inline sincospi(w)
46+
sinpi_w, cospi_w = @inline sincospi(w)
4747
pole = complex(b * sinpi_w, c * cospi_w)
4848
p[2i-1] = pole
4949
p[2i] = conj(pole)
@@ -94,7 +94,7 @@ function Chebyshev2(::Type{T}, n::Integer, ripple::Real) where {T<:Real}
9494
k = one(T)
9595
for i = 1:n÷2
9696
w = convert(T, 2i - 1) / 2n
97-
ze = Compat.@inline complex(zero(T), -inv(cospi(w)))
97+
ze = @inline complex(zero(T), -inv(cospi(w)))
9898
z[2i-1] = ze
9999
z[2i] = conj(ze)
100100
k *= abs2(p[2i]) / abs2(ze)
@@ -140,8 +140,8 @@ function _ellip(init::Number, landen::Vector{<:Real})
140140
end
141141
w = inv(winv)
142142
end
143-
@inline cde(u::Number, landen::Vector{<:Real}) = Compat.@inline _ellip(cospi(u / 2), landen)
144-
@inline sne(u::Number, landen::Vector{<:Real}) = Compat.@inline _ellip(sinpi(u / 2), landen)
143+
@inline cde(u::Number, landen::Vector{<:Real}) = @inline _ellip(cospi(u / 2), landen)
144+
@inline sne(u::Number, landen::Vector{<:Real}) = @inline _ellip(sinpi(u / 2), landen)
145145

146146
# sne inverse
147147
function asne(w::Number, k::Real)

src/Filters/response.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function _freqrange(filter::FilterCoefficients{:s})
160160
filter = convert(ZeroPoleGain, filter)
161161
w_interesting = sort!(Float64.(abs.([filter.p; filter.z])))
162162
include_zero = !isempty(w_interesting) && iszero(w_interesting[1])
163-
w_interesting = collect(Compat.Iterators.dropwhile(iszero, w_interesting))
163+
w_interesting = collect(Iterators.dropwhile(iszero, w_interesting))
164164
if isempty(w_interesting) # no non-zero poles or zeros
165165
if !include_zero || !isfinite(1/filter.k)
166166
return [0; 10 .^ (0:6)] # fallback

src/dspbase.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function filt!(out::AbstractArray, b::Union{AbstractVector, Number}, a::Union{Ab
5151
end
5252

5353
iszero(size(x, 1)) && return out
54-
isone(sz) && return (k = b[1] / a[1]; Compat.@noinline mul!(out, x, k)) # Simple scaling without memory
54+
isone(sz) && return (k = b[1] / a[1]; @noinline mul!(out, x, k)) # Simple scaling without memory
5555

5656
# Filter coefficient normalization
5757
if !isone(a[1])
5858
norml = a[1]
59-
a = Compat.@noinline broadcast(/, a, norml)
60-
b = Compat.@noinline broadcast(/, b, norml)
59+
a = @noinline broadcast(/, a, norml)
60+
b = @noinline broadcast(/, b, norml)
6161
end
6262
# Pad the coefficients with zeros if needed
6363
bs<sz && (b = copyto!(zeros(eltype(b), sz), b))

0 commit comments

Comments
 (0)