Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Oct 8, 2023
1 parent cd0f04a commit 0d5ab59
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/systems/systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ simplification will allow models where `n_states = n_equations - n_inputs`.
"""
function structural_simplify(sys::AbstractSystem, io = nothing; simplify = false,
kwargs...)
newsys = __structural_simplify(sys, io; simplify, kwargs...)
newsys′ = __structural_simplify(sys, io; simplify, kwargs...)
if newsys′ isa Tuple
@assert length(newsys′) == 2
newsys = newsys′[1]

Check warning on line 24 in src/systems/systems.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/systems.jl#L21-L24

Added lines #L21 - L24 were not covered by tests
else
newsys = newsys′

Check warning on line 26 in src/systems/systems.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/systems.jl#L26

Added line #L26 was not covered by tests
end
@set! newsys.parent = complete(sys)
return complete(newsys)
newsys = complete(newsys)
if newsys′ isa Tuple
return newsys, newsys′[2]

Check warning on line 31 in src/systems/systems.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/systems.jl#L28-L31

Added lines #L28 - L31 were not covered by tests
else
return newsys

Check warning on line 33 in src/systems/systems.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/systems.jl#L33

Added line #L33 was not covered by tests
end
end
function __structural_simplify(sys::AbstractSystem, io = nothing; simplify = false,

Check warning on line 36 in src/systems/systems.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/systems.jl#L36

Added line #L36 was not covered by tests
kwargs...)
Expand Down

0 comments on commit 0d5ab59

Please sign in to comment.