diff --git a/.gitignore b/.gitignore index c8ce933..7b24c53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ test_gas_alves.jl -Manifest.toml + forecast_example.jl residuals_diagnostic_example.jl test_numeric_integration.jl @@ -9,5 +9,8 @@ inovations_ssmodels.jl test_component_expression.jl test_gas.jl +# Manifest file +Manifest.toml + # Files with csv extension *.csv \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index a77437a..250ac50 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,6 +13,4 @@ include("test_components_dynamics.jl") include("test_optimization.jl") include("test_distributions.jl") include("test_initialization.jl") -include("test_residuals_diagnostics.jl") - - +include("test_residuals_diagnostics.jl") \ No newline at end of file diff --git a/test/test_fit_forecast_lognormal.jl b/test/test_fit_forecast_lognormal.jl index c7d4e4f..45c98df 100644 --- a/test/test_fit_forecast_lognormal.jl +++ b/test/test_fit_forecast_lognormal.jl @@ -155,8 +155,8 @@ end @testset " --- Test quality of fit - LogNormal with 2 params" begin - y = time_series[1:end-steps_ahead,4] - y_test = time_series[end-steps_ahead+1:end, 4] + y = time_series[1:end-steps_ahead,2] + y_test = time_series[end-steps_ahead+1:end, 2] gas_model = UnobservedComponentsGAS.GASModel(UnobservedComponentsGAS.LogNormalDistribution(), [true, true], 0.5, ["random walk slope", "random walk"], ["deterministic 12", "deterministic 12"], [missing, missing]) fitted_model = UnobservedComponentsGAS.fit(gas_model, y)