Skip to content

Commit 258cb96

Browse files
committed
debug julia 1.6
1 parent dab958b commit 258cb96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/estimator/internal_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function matrices_internalmodel(model::LinModel)
130130
return Â, B̂u, Ĉ, B̂d, D̂d
131131
end
132132
"Return empty matrices if `model` is not a [`LinModel`](@ref)."
133-
matrices_internalmodel(::SimModel) = tuple(fill(Float64[;;],5)...)
133+
matrices_internalmodel(::SimModel) = tuple(fill(zeros(0, 0),5)...)
134134

135135
@doc raw"""
136136
f̂(estim::InternalModel, x̂, u, d)

src/predictive_control.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ function init_stochpred(estim::InternalModel, Hp)
886886
return Ks, Ps
887887
end
888888
"Return empty matrices if `estim` is not a [`InternalModel`](@ref)."
889-
init_stochpred(::StateEstimator, _ ) = Float64[;;], Float64[;;]
889+
init_stochpred(::StateEstimator, _ ) = zeros(0, 0), zeros(0, 0)
890890

891891

892892
@doc raw"""

src/state_estim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function augment_model(model::LinModel, As, Cs_u, Cs_y; verify_obsv=true)
197197
return Â, B̂u, Ĉ, B̂d, D̂d
198198
end
199199
"Return empty matrices if `model` is not a [`LinModel`](@ref)."
200-
augment_model(::SimModel, _ , _ , _ ) = tuple(fill(Float64[;;],5)...)
200+
augment_model(::SimModel, _ , _ , _ ) = tuple(fill(zeros(0, 0),5)...)
201201

202202

203203
@doc raw"""

0 commit comments

Comments
 (0)