FRBNY-DSGE / Estimating_HANK

Contains code used for production of results in the 2023 paper "Estimating HANK For Central Banks"
1 stars 0 forks source link

fullsmc.jl results in LoadError: type Array has no field parameters #2

Open ZeroCool2u opened 2 months ago

ZeroCool2u commented 2 months ago

Trying to repro based on the README and running the first estimation script results in the following stack trace:

testing new ordering bbl
ERROR: LoadError: type Array has no field parameters
Stacktrace:
 [1] getproperty(x::Vector{AbstractParameter{Float64}}, f::Symbol)
   @ Base ./Base.jl:33
 [2] get_values(pvec::Vector{AbstractParameter{Float64}}; regime_switching::Bool)
   @ ModelConstructors ~/.julia/packages/ModelConstructors/r0PZ3/src/regimes.jl:361
 [3] get_values
   @ ~/.julia/packages/ModelConstructors/r0PZ3/src/regimes.jl:357 [inlined]
 [4] init_parameters!(m::BayerBornLuetticke{Float64})
   @ Main /mnt/Estimating_HANK-main/dsge_version/BBL_MH_SMC/src/models/heterogeneous/bayer_born_luetticke/bayer_born_luetticke.jl:876
 [5] BayerBornLuetticke(subspec::String; custom_settings::Dict{Symbol, Setting}, load_steadystate::Bool, load_jacobian::Bool, testing::Bool)
   @ Main /mnt/Estimating_HANK-main/dsge_version/BBL_MH_SMC/src/models/heterogeneous/bayer_born_luetticke/bayer_born_luetticke.jl:317
 [6] BayerBornLuetticke (repeats 2 times)
   @ /mnt/Estimating_HANK-main/dsge_version/BBL_MH_SMC/src/models/heterogeneous/bayer_born_luetticke/bayer_born_luetticke.jl:257 [inlined]
 [7] top-level scope
   @ /mnt/Estimating_HANK-main/estim/hank/fullsmc.jl:87
in expression starting at /mnt/Estimating_HANK-main/estim/hank/fullsmc.jl:87

Line 87 is just:

m = BayerBornLuetticke()

So, it seems like something is fundamentally wrong. Anything you'd like me to try to get it working?

pranay-gundam commented 2 months ago

Hi Theo, sorry for the delay on this. We have been going through a busy time on our end. Real quick check, do you happen to be running this Julia v1.5 instead of v1.6?

ZeroCool2u commented 2 months ago

No worries Pranay!

No, we've been running the latest LTS version, because we saw that in your docs. 1.6.7 specifically.

Feel free to message me internally if you'd like any more details as well!