LAMPSPUC/StateSpaceModels.jl

Example in the Quick Start not working

Closed this issue · 1 comments

The plotdiagnostics(kf) function in the "Quick Start Guide" returns the error below. Note that I'm using Julia 1.7.2, Plots v1.30.1 , StateSpaceModels v0.6.3.

MethodError: no method matching get_standard_residuals(::Tuple{FilterOutput{Float64}})
Closest candidates are:
  get_standard_residuals(::FilterOutput) at ~/.julia/packages/StateSpaceModels/sBpbl/src/kalman_filter_and_smoother.jl:83
  get_standard_residuals(::StateSpaceModels.NaiveModel) at ~/.julia/packages/StateSpaceModels/sBpbl/src/models/naive_models.jl:10

Stacktrace:
  [1] macro expansion
    @ ~/.julia/packages/StateSpaceModels/sBpbl/src/visualization/diagnostics.jl:3 [inlined]
  [2] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, diagnostics::StateSpaceModels.PlotDiagnostics)
    @ StateSpaceModels ~/.julia/packages/RecipesBase/qpxEX/src/RecipesBase.jl:289
  [3] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/F2mWY/src/user_recipe.jl:36
  [4] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/F2mWY/src/RecipesPipeline.jl:70
  [5] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
    @ Plots ~/.julia/packages/Plots/MzlNY/src/plot.jl:208
  [6] plot(args::Any; kw::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
    @ Plots ~/.julia/packages/Plots/MzlNY/src/plot.jl:91
  [7] plot
    @ ~/.julia/packages/Plots/MzlNY/src/plot.jl:85 [inlined]
  [8] #plotdiagnostics#166
    @ ~/.julia/packages/RecipesBase/qpxEX/src/RecipesBase.jl:364 [inlined]
  [9] plotdiagnostics(args::FilterOutput{Float64})
    @ StateSpaceModels ~/.julia/packages/RecipesBase/qpxEX/src/RecipesBase.jl:364
 [10] top-level scope
    @ In[20]:1
 [11] eval
    @ ./boot.jl:373 [inlined]
 [12] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:1196

Hi, @davibarreira. Thank you for pointing that out! I will fix and release a new version with the plot working correctly.