From e1b1e0f44d068422f811c3fcc590cb43e76dce19 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Thu, 8 Aug 2024 06:36:59 +0200 Subject: [PATCH] normalize op user input In case the user passes a vector of pairs, the `merge` below will fail. --- src/systems/abstractsystem.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/systems/abstractsystem.jl b/src/systems/abstractsystem.jl index 4e18078282..8e4feea46c 100644 --- a/src/systems/abstractsystem.jl +++ b/src/systems/abstractsystem.jl @@ -2196,6 +2196,7 @@ function linearization_function(sys::AbstractSystem, inputs, eval_expression = false, eval_module = @__MODULE__, warn_initialize_determined = true, kwargs...) + op = Dict(op) inputs isa AbstractVector || (inputs = [inputs]) outputs isa AbstractVector || (outputs = [outputs]) ssys, diff_idxs, alge_idxs, input_idxs = io_preprocessing(sys, inputs, outputs;