Skip to content

Commit b034baa

Browse files
authored
Merge pull request #149 from ModiaSim/otter_development
Improvements
2 parents 5d40662 + 0adecdd commit b034baa

16 files changed

+3709
-32
lines changed

Manifest.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
6565

6666
[[deps.BandedMatrices]]
6767
deps = ["ArrayLayouts", "FillArrays", "LinearAlgebra", "Random", "SparseArrays"]
68-
git-tree-sha1 = "13223ec65172b18f164e8a8338e4e95d40d54c8c"
68+
git-tree-sha1 = "0227886a3141dfbb9fab5bfbf2133ac57677c1f9"
6969
uuid = "aae01518-5342-5314-be14-df237901396f"
70-
version = "0.17.2"
70+
version = "0.17.3"
7171

7272
[[deps.Base64]]
7373
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
@@ -610,9 +610,9 @@ version = "6.18.1"
610610

611611
[[deps.PDMats]]
612612
deps = ["LinearAlgebra", "SparseArrays", "SuiteSparse"]
613-
git-tree-sha1 = "ca433b9e2f5ca3a0ce6702a032fce95a3b6e1e48"
613+
git-tree-sha1 = "9351c1a6c0e922cc862bd96822a98c9029a6d142"
614614
uuid = "90014a1f-27ba-587c-ab20-58faa44d9150"
615-
version = "0.11.14"
615+
version = "0.11.15"
616616

617617
[[deps.Parameters]]
618618
deps = ["OrderedCollections", "UnPack"]
@@ -795,9 +795,9 @@ uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
795795

796796
[[deps.SignalTables]]
797797
deps = ["DataFrames", "JSON", "OrderedCollections", "Pkg", "Tables", "Test", "Unitful"]
798-
git-tree-sha1 = "b8f0cd15fe115b38eae285d9b23386e848fc7c6b"
798+
git-tree-sha1 = "ddd51e545dc084c588ca158d773452218fdf0e9a"
799799
uuid = "3201582d-3078-4276-ba5d-0a1254d79d7c"
800-
version = "0.3.4"
800+
version = "0.3.5"
801801

802802
[[deps.SimpleTraits]]
803803
deps = ["InteractiveUtils", "MacroTools"]

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
authors = ["Hilding Elmqvist <[email protected]>", "Martin Otter <[email protected]>"]
22
name = "Modia"
33
uuid = "cb905087-75eb-5f27-8515-1ce0ec8e839e"
4-
version = "0.9.0"
4+
version = "0.9.1"
55

66
[deps]
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -39,7 +39,7 @@ MonteCarloMeasurements = "1"
3939
OrderedCollections = "1"
4040
RecursiveFactorization = "0.2"
4141
Reexport = "1"
42-
SignalTables = "0.3.4"
42+
SignalTables = "0.3.5"
4343
StaticArrays = "1"
4444
Sundials = "4"
4545
TimerOutputs = "0.5"

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ julia> ]add SignalTablesInterface_PyPlot # if plotting with PyPlot desire
3131
add SignalTablesInterface_GLMakie # if plotting with GLMakie desired
3232
add SignalTablesInterface_WGLMakie # if plotting with WGLMakie desired
3333
add SignalTablesInterface_CairoMakie # if plotting with CairoMakie desired
34+
35+
# might be sometimes also useful
36+
add SignalTables
3437
```
3538

3639
or call `t = getValues(instantiatedModel, "time"), y = getValues(instantiatedModel, "y")` to retrieve
@@ -59,9 +62,6 @@ where *phi* is the rotation angle, *omega* the angular velocity, *m* the mass, *
5962

6063
```julia
6164
using Modia
62-
@usingPlotPackage # Use plot package defined with
63-
# ENV["SignalTablesPlotPackage"]="PyPlot" or
64-
# usePlotPackage("PyPlot")
6565

6666
Pendulum = Model(
6767
L = 0.8u"m",
@@ -82,6 +82,10 @@ simulate!(pendulum1, Tsit5(), stopTime = 10.0u"s", log=true)
8282

8383
showInfo(pendulum1) # print info about the result
8484
writeSignalTable("pendulum1.json", pendulum1, indent=2, log=true)
85+
86+
@usingModiaPlot # Use plot package defined with
87+
# ENV["SignalTablesPlotPackage"] = "XXX" or with
88+
# usePlotPackage("XXX")
8589
plot(pendulum1, [("phi", "w"); "r"], figure = 1)
8690
```
8791
The result is the following print output

docs/make.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter, Modia, SignalTables, SignalTablesInterface_PyPlot
1+
using Documenter, Modia, Modia.SignalTables, SignalTablesInterface_PyPlot
22

33
makedocs(
44
#modules = [Modia],

0 commit comments

Comments
 (0)