Skip to content

Commit 2d5edf2

Browse files
author
Brad Carman
committed
v1.4.0
1 parent 8f8e869 commit 2d5edf2

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkitDesigner"
22
uuid = "23d639d0-9462-4d1e-84fe-d700424865b8"
33
authors = ["Brad Carman <[email protected]>"]
4-
version = "1.3.0"
4+
version = "1.4.0"
55

66
[deps]
77
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
@@ -13,11 +13,11 @@ ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739"
1313
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
1414

1515
[compat]
16-
CairoMakie = "0.11"
16+
CairoMakie = "0.11, 0.12"
1717
FileIO = "1"
1818
FilterHelpers = "0.2"
19-
GLMakie = "0.9"
20-
ModelingToolkit = "9"
19+
GLMakie = "0.9, 0.10"
20+
ModelingToolkit = "8,9"
2121
ModelingToolkitStandardLibrary = "2"
2222
TOML = "1"
2323
julia = "1.6"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
The ModelingToolkitDesigner.jl package is a helper tool for visualizing and editing ModelingToolkit.jl system connections.
44

55
# Updates
6+
## v1.4
7+
- supports ModelingToolkit v8 and v9
8+
69
## v1.3
710
- updating to ModelingToolkit v9
811

src/ModelingToolkitDesigner.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,12 @@ end
942942
get_style(design::ODESystemDesign) = get_style(design.system)
943943
function get_style(system::ODESystem)
944944

945-
sts = ModelingToolkit.get_unknowns(system)
945+
sts = if pkgversion(ModelingToolkit) >= v"9"
946+
ModelingToolkit.get_unknowns(system)
947+
else
948+
ModelingToolkit.get_states(system)
949+
end
950+
946951
if length(sts) == 1
947952
s = first(sts)
948953
vtype = ModelingToolkit.get_connection_type(s)

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ D = Differential(t)
2727
duration = Inf,
2828
smooth = 0,
2929
)
30-
src = IC.Pressure(; p_int = 0)
31-
vol = IC.FixedVolume(; p_int = 0, vol = 10.0)
32-
res = IC.Tube(N; p_int = 0, area = 0.01, length = 500.0)
30+
src = IC.Pressure()
31+
vol = IC.FixedVolume(; vol = 10.0)
32+
res = IC.Tube(N; area = 0.01, length = 500.0)
3333
end
3434

3535
eqs = Equation[

0 commit comments

Comments
 (0)