Skip to content

Commit

Permalink
try fix JET again
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Dec 21, 2023
1 parent 73f9b7b commit e4abde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6002,15 +6002,15 @@ end



function calculate_kalman_filter_loglikelihood(𝓂::β„³, data::AbstractArray{Float64}, observables::Vector{Symbol}; parameters::Union{Nothing,Vector{U}} = nothing, verbose::Bool = false, tol::AbstractFloat = eps()) where U <: Number
function calculate_kalman_filter_loglikelihood(𝓂::β„³, data::AbstractArray{Float64}, observables::Vector{Symbol}; parameters::Vector{U} = nothing, verbose::Bool = false, tol::AbstractFloat = eps()) where U <: Number
@assert length(observables) == size(data)[1] "Data columns and number of observables are not identical. Make sure the data contains only the selected observables."
@assert length(observables) <= 𝓂.timings.nExo "Cannot estimate model with more observables than exogenous shocks. Have at least as many shocks as observable variables."

@ignore_derivatives sort!(observables)

@ignore_derivatives solve!(𝓂, verbose = verbose)

if isnothing(parameters)
if parameters == Float64[]
parameters = 𝓂.parameter_values
else
ub = @ignore_derivatives fill(1e12+rand(),length(𝓂.parameters) + length(𝓂.βž•_vars))
Expand Down

0 comments on commit e4abde9

Please sign in to comment.