Skip to content

Commit 017413c

Browse files
committed
split off empty branch to avoid DataFrames.jl piracy in reduce
1 parent 874985c commit 017413c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/systems/abstractsystem.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,13 +1345,16 @@ function parameter_dependencies(sys::AbstractSystem)
13451345
pdeps = get_parameter_dependencies(sys)
13461346
systems = get_systems(sys)
13471347
# put pdeps after those of subsystems to maintain topological sorted order
1348-
return vcat(
1349-
reduce(vcat,
1350-
[map(eq -> namespace_equation(eq, s), parameter_dependencies(s))
1351-
for s in systems];
1352-
init = Equation[]),
1353-
pdeps
1354-
)
1348+
if isempty(systems)
1349+
return pdeps
1350+
else
1351+
return vcat(
1352+
reduce(vcat,
1353+
[map(eq -> namespace_equation(eq, s), parameter_dependencies(s))
1354+
for s in systems]),
1355+
pdeps
1356+
)
1357+
end
13551358
end
13561359

13571360
function full_parameters(sys::AbstractSystem)

0 commit comments

Comments
 (0)