File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 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