Skip to content

Commit e1b1e0f

Browse files
authored
normalize op user input
In case the user passes a vector of pairs, the `merge` below will fail.
1 parent 5f26ded commit e1b1e0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,7 @@ function linearization_function(sys::AbstractSystem, inputs,
21962196
eval_expression = false, eval_module = @__MODULE__,
21972197
warn_initialize_determined = true,
21982198
kwargs...)
2199+
op = Dict(op)
21992200
inputs isa AbstractVector || (inputs = [inputs])
22002201
outputs isa AbstractVector || (outputs = [outputs])
22012202
ssys, diff_idxs, alge_idxs, input_idxs = io_preprocessing(sys, inputs, outputs;

0 commit comments

Comments
 (0)