Skip to content

Commit aff45e4

Browse files
committed
handle systems where op must be supplied to linearization_function
1 parent c6de5c8 commit aff45e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ControlSystemsMTK"
22
uuid = "687d7614-c7e5-45fc-bfc3-9ee385575c88"
33
authors = ["Fredrik Bagge Carlson"]
4-
version = "2.0.0"
4+
version = "2.0.1"
55

66
[deps]
77
ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"

src/ode_system.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ end
409409
function batch_linearize(sys, inputs, outputs, ops::AbstractVector{<:AbstractDict}; t = 0.0,
410410
allow_input_derivatives = false,
411411
kwargs...)
412-
lin_fun, ssys = linearization_function(sys, inputs, outputs; kwargs...)
412+
lin_fun, ssys = linearization_function(sys, inputs, outputs; op=ops[1], kwargs...)
413413
lins = map(ops) do op
414414
linearize(ssys, lin_fun; op, t, allow_input_derivatives)
415415
end

0 commit comments

Comments
 (0)