Skip to content

Commit e4f4fe2

Browse files
author
andre_ramos
committed
hot fix cycle simulation
1 parent a4fa817 commit e4f4fe2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StateSpaceLearning"
22
uuid = "971c4b7c-2c4e-4bac-8525-e842df3cde7b"
33
authors = ["andreramosfc <[email protected]>"]
4-
version = "2.0.7"
4+
version = "2.0.8"
55

66
[deps]
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"

src/models/structural_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ function simulate_states(
16181618
seasonals_t = [zeros(N_scenarios) for _ in eachindex(model.freq_seasonal)]
16191619
end
16201620

1621-
if model.cycle_period != 0
1621+
if model.cycle_period != 0 && model.cycle_period != []
16221622
cycles_t = []
16231623
for i in eachindex(model.cycle_period)
16241624
λ = 2 * pi * (1:(T + steps_ahead)) / model.cycle_period[i]

0 commit comments

Comments
 (0)