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

Error when trying to reload a BSON file #76

Open
tszanalytics opened this issue Oct 30, 2020 · 0 comments
Open

Error when trying to reload a BSON file #76

tszanalytics opened this issue Oct 30, 2020 · 0 comments

Comments

@tszanalytics
Copy link

Up until today (10/30/2020) I have run the following code numerous times with no error. Today I get the following error:

using BSON: @load, @save
using AxisArrays
using CSV, DataFrames, Plots, StatsPlots, Distributions
using Turing, LinearAlgebra

@load "heterog_model_hmc_chains_02prior.bson" cc

ERROR: TypeError: in Type, in A, expected A<:(AxisArray{Union{Missing, Real},3,D,Ax} where Ax where D), got Type{Missing}
Stacktrace:
[1] constructtype(::Type{T} where T, ::Array{Any,1}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\extensions.jl:50
[2] (::BSON.var"#33#34")(::Dict{Symbol,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\extensions.jl:53
[3] _raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:79
[4] raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:89
[5] (::BSON.var"#43#44")(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\extensions.jl:138
[6] raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:88
[7] (::BSON.var"#18#20"{IdDict{Any,Any}})(::Dict{Symbol,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:82
[8] applychildren!(::BSON.var"#18#20"{IdDict{Any,Any}}, ::Dict{Symbol,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\BSON.jl:21
[9] _raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:82
[10] raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:89
[11] raise_recursive at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:99 [inlined]
[12] load(::String) at C:\Users\millsjf.julia\packages\BSON\XAts7\src\read.jl:104
[13] top-level scope at C:\Users\millsjf.julia\packages\BSON\XAts7\src\BSON.jl:52

I have tried updating the packages. The same error occurs for different BSON files, so it's not a corrupted file.

It takes several hours to estimate the model, so I really need to be able to load the MCMC chains rather than keep running the model again. Any help would be greatly appreciated.

Thanks,
Jeff Mills

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant