diff --git a/Project.toml b/Project.toml index e1388e0..d8f95a4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StateSpaceLearning" uuid = "971c4b7c-2c4e-4bac-8525-e842df3cde7b" authors = ["andreramosfc "] -version = "2.0.7" +version = "2.0.8" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" diff --git a/src/models/structural_model.jl b/src/models/structural_model.jl index 291737d..72b85f6 100644 --- a/src/models/structural_model.jl +++ b/src/models/structural_model.jl @@ -1618,7 +1618,7 @@ function simulate_states( seasonals_t = [zeros(N_scenarios) for _ in eachindex(model.freq_seasonal)] end - if model.cycle_period != 0 + if model.cycle_period != 0 && model.cycle_period != [] cycles_t = [] for i in eachindex(model.cycle_period) λ = 2 * pi * (1:(T + steps_ahead)) / model.cycle_period[i]