Skip to content

Commit 69ca4e5

Browse files
authored
Fixed deprecation (#98)
* Fixed deprecation * Put through latest juliaformatter * Testing on 1.8 * Version bump
1 parent d685db0 commit 69ca4e5

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
group:
1515
- All
1616
version:
17-
- "1.7"
17+
- "1.8"
1818
steps:
1919
- uses: actions/checkout@v3
2020
- uses: julia-actions/setup-julia@v1

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DifferenceEquations"
22
uuid = "e0ca9c66-1f9e-11ec-127a-1304ce62169c"
33
authors = ["various contributors"]
4-
version = "0.5.1"
4+
version = "0.5.2"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -23,4 +23,4 @@ PDMats = "0.11"
2323
RecursiveArrayTools = "2.25"
2424
SciMLBase = "1.39"
2525
UnPack = "1"
26-
julia = "1.6"
26+
julia = "1.8"

src/algorithms/linear.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function DiffEqBase.__solve(prob::LinearStateSpaceProblem, alg::KalmanFilter, ar
216216
lmul!(0.5, V[t].mat)
217217

218218
copy!(V[t].chol.factors, V[t].mat) # copy over to the factors for the cholesky and do in place
219-
cholesky!(V[t].chol.factors, Val(false); check = false) # inplace uses V_t with cholesky. Now V[t]'s chol is upper-triangular
219+
cholesky!(V[t].chol.factors, NoPivot(); check = false) # inplace uses V_t with cholesky. Now V[t]'s chol is upper-triangular
220220
innovation[t] .= prob.observables[:, t - 1] - z[t]
221221
loglik += logpdf(MvNormal(V[t]), innovation[t]) # no allocations since V[t] is a PDMat
222222

@@ -334,7 +334,7 @@ function ChainRulesCore.rrule(::typeof(DiffEqBase.solve), prob::LinearStateSpace
334334
lmul!(0.5, V[t].mat)
335335

336336
copy!(V[t].chol.factors, V[t].mat) # copy over to the factors for the cholesky and do in place
337-
cholesky!(V[t].chol.factors, Val(false); check = false) # inplace uses V_t with cholesky. Now V[t]'s chol is upper-triangular
337+
cholesky!(V[t].chol.factors, NoPivot(); check = false) # inplace uses V_t with cholesky. Now V[t]'s chol is upper-triangular
338338
innovation[t] .= prob.observables[:, t - 1] - z[t]
339339
loglik += logpdf(MvNormal(V[t]), innovation[t]) # no allocations since V[t] is a PDMat
340340

src/utilities.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ maybe_zero(A::Nothing) = nothing
135135
maybe_zero(A::AbstractArray, i::Int64) = zero(A[i])
136136
maybe_zero(A::Nothing, i) = nothing
137137

138-
139138
# old quad and adjoint replaced by inplace accumulation versions.
140139
# function quad(A::AbstractArray{<:Number,3}, x)
141140
# return map(j -> dot(x, view(A, j, :, :), x), 1:size(A, 1))

test/kalman_likelihood.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ R = [0.01 0.0 0.0 0.0;
263263
loglik = solve_manual_cov_lik(A_kalman, B_kalman, C_kalman, u0_mean, u0_var_vech,
264264
observables_kalman,
265265
R, [0, T])
266-
sol = solve_kalman_cov(A_kalman, B_kalman, C_kalman, u0_mean, u0_var_vech, observables_kalman,
266+
sol = solve_kalman_cov(A_kalman, B_kalman, C_kalman, u0_mean, u0_var_vech,
267+
observables_kalman,
267268
R)
268269
@test sol.logpdf loglik
269270
end

0 commit comments

Comments
 (0)