Skip to content

Commit 1f969c5

Browse files
committed
Merge branch 'master' into doc_figure_update
2 parents d5f303a + cc2a777 commit 1f969c5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Catalyst"
22
uuid = "479239e8-5488-4da2-87a7-35f2df7eef83"
3-
version = "13.5.1"
3+
version = "14.0.0-DEV"
44

55
[deps]
66
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"

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

test/upstream/mtk_structure_indexing.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ end
6464

6565
# Tests problem indexing and updating.
6666
let
67-
for prob in [deepcopy(problems); deepcopy(eproblems)]
67+
@test_broken false # Currently does not work for nonlinearproblems and their ensemble problems (https://github.com/SciML/SciMLBase.jl/issues/720).
68+
for prob in [deepcopy([oprob, sprob, dprob, jprob, ssprob]); deepcopy([eoprob, esprob, edprob, ejprob, essprob])]
6869
# Get u values (including observables).
6970
@test prob[X] == prob[model.X] == prob[:X] == 4
7071
@test prob[XY] == prob[model.XY] == prob[:XY] == 9
@@ -253,7 +254,8 @@ let
253254

254255
# Handles nonlinear and steady state solutions differently.
255256
let
256-
for sol in deepcopy([nsol, sssol])
257+
@test_broken false # Currently a problem for nonlinear solutions and steady state solutions (https://github.com/SciML/SciMLBase.jl/issues/720).
258+
for sol in deepcopy([])
257259
# Get u values.
258260
@test sol[X] == sol[model.X] == sol[:X]
259261
@test sol[XY] == sol[model.XY][1] == sol[:XY]

0 commit comments

Comments
 (0)