Skip to content

Commit cc2f95f

Browse files
Merge pull request #951 from SciML/ChrisRackauckas-patch-1
Update to general namespace separator
2 parents 4d8c04d + b9a72f0 commit cc2f95f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/reactionsystem_conversions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ function _symbol_to_var(sys, sym)
798798
if hasproperty(sys, sym)
799799
var = getproperty(sys, sym, namespace = false)
800800
else
801-
strs = split(String(sym), "") # need to check if this should be split of not!!!
801+
strs = split(String(sym), ModelingToolkit.NAMESPACE_SEPARATOR) # need to check if this should be split of not!!!
802802
if length(strs) > 1
803803
var = getproperty(sys, Symbol(strs[1]), namespace = false)
804804
for str in view(strs, 2:length(strs))

test/dsl/dsl_options.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ let
493493
@test plot(sol; idxs=:X).series_list[1].plotattributes[:y][end] 10.0
494494
@test plot(sol; idxs=[X, Y]).series_list[2].plotattributes[:y][end] 3.0
495495
@test plot(sol; idxs=[rn.X, rn.Y]).series_list[2].plotattributes[:y][end] 3.0
496-
@test_broken plot(sol; idxs=[:X, :Y]).series_list[2].plotattributes[:y][end] 3.0 # (https://github.com/SciML/ModelingToolkit.jl/issues/2778)
496+
@test plot(sol; idxs=[:X, :Y]).series_list[2].plotattributes[:y][end] 3.0 # (https://github.com/SciML/ModelingToolkit.jl/issues/2778)
497497
end
498498

499499
# Compares programmatic and DSL system with observables.
@@ -950,4 +950,4 @@ let
950950
rl = oderatelaw(reactions(rn3)[1]; combinatoric_ratelaw)
951951
@unpack k1, A = rn3
952952
@test isequal(rl, k1*A^2)
953-
end
953+
end

0 commit comments

Comments
 (0)