File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " StateSpaceLearning"
2
2
uuid = " 971c4b7c-2c4e-4bac-8525-e842df3cde7b"
3
3
authors = [
" andreramosfc <[email protected] >" ]
4
- version = " 2.0.8 "
4
+ version = " 2.0.9 "
5
5
6
6
[deps ]
7
7
Distributions = " 31c24e10-a181-5473-b8eb-7969acd0382f"
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ mutable struct StructuralModel <: StateSpaceLearningModel
109
109
110
110
if typeof (cycle_period) <: Vector
111
111
(@assert all (cycle_period .>= 0 ) " Cycle period must be greater than or equal to 0" )
112
+ if isempty (cycle_period)
113
+ cycle_period = 0
114
+ end
112
115
else
113
116
(@assert cycle_period >= 0 " Cycle period must be greater than or equal to 0" )
114
117
end
@@ -1618,7 +1621,7 @@ function simulate_states(
1618
1621
seasonals_t = [zeros (N_scenarios) for _ in eachindex (model. freq_seasonal)]
1619
1622
end
1620
1623
1621
- if model. cycle_period != 0 && model . cycle_period != []
1624
+ if model. cycle_period != 0
1622
1625
cycles_t = []
1623
1626
for i in eachindex (model. cycle_period)
1624
1627
λ = 2 * pi * (1 : (T + steps_ahead)) / model. cycle_period[i]
You can’t perform that action at this time.
0 commit comments