Skip to content

Commit 2a2b8b3

Browse files
fix: handle nothing values in linearize
1 parent 7793cb3 commit 2a2b8b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/linearization.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ function linearize(sys, lin_fun::LinearizationFunction; t = 0.0,
576576
op = anydict(op)
577577
evaluate_varmap!(op, unknowns(sys))
578578
for (k, v) in op
579+
v === nothing && continue
579580
if is_parameter(prob, Initial(k))
580581
setu(prob, Initial(k))(prob, v)
581582
else

0 commit comments

Comments
 (0)