Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZeroCool2u opened this issue Jul 18, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ZeroCool2u
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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!

@pranay-gundam pranay-gundam pinned this issue Aug 27, 2024
@pranay-gundam pranay-gundam added bug Something isn't working good first issue Good for newcomers labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants