Skip to content

Commit 701515a

Browse files
author
andre_ramos
committed
Add assertions to improve input validation and prevent bugs
1 parent c5819e8 commit 701515a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/structural_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ mutable struct StructuralModel <: StateSpaceLearningModel
124124
if typeof(cycle_period) <: Vector
125125
@assert all(cycle_period .>= 0) "Cycle period must be greater than or equal to 0"
126126
end
127-
127+
128128
if cycle_period == 0
129129
@assert !stochastic_cycle "stochastic_cycle must be false if cycle_period is 0"
130130
end

0 commit comments

Comments
 (0)