Skip to content

Commit 8862b97

Browse files
committed
Remove redundant isparameter(lhs) check
1 parent 5e279ce commit 8862b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ function get_u0(
730730
# if "lhs" is known by other means (parameter, another default, ...)
731731
# TODO: Is there a better way to determine which equations to flip?
732732
obs = map(x -> x.lhs => x.rhs, observed(sys))
733-
obs = map(x -> isparameter(x[1]) || x[1] in keys(defs) ? reverse(x) : x, obs)
733+
obs = map(x -> x[1] in keys(defs) ? reverse(x) : x, obs)
734734
obs = filter!(x -> !(x[1] isa Number), obs) # exclude e.g. "0 => x^2 + y^2 - 25"
735735
obsmap = isempty(obs) ? Dict() : todict(obs)
736736

0 commit comments

Comments
 (0)