Skip to content

Commit

Permalink
handle systems where op must be supplied to linearization_function
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Mar 5, 2024
1 parent c6de5c8 commit aff45e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ControlSystemsMTK"
uuid = "687d7614-c7e5-45fc-bfc3-9ee385575c88"
authors = ["Fredrik Bagge Carlson"]
version = "2.0.0"
version = "2.0.1"

[deps]
ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
Expand Down
2 changes: 1 addition & 1 deletion src/ode_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ end
function batch_linearize(sys, inputs, outputs, ops::AbstractVector{<:AbstractDict}; t = 0.0,
allow_input_derivatives = false,
kwargs...)
lin_fun, ssys = linearization_function(sys, inputs, outputs; kwargs...)
lin_fun, ssys = linearization_function(sys, inputs, outputs; op=ops[1], kwargs...)
lins = map(ops) do op
linearize(ssys, lin_fun; op, t, allow_input_derivatives)
end
Expand Down

0 comments on commit aff45e4

Please sign in to comment.