Skip to content

Commit e6bdfdf

Browse files
author
Brad Carman
committed
Added extras to Project.toml and LICENSE
1 parent c6540cb commit e6bdfdf

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Bradley Carman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ FilterHelpers = "d8f44d74-4a63-4059-add9-16c5740a0809"
1010
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
1111
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1212
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
13+
14+
[extras]
15+
ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739"
16+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
17+
18+
[targets]
19+
test = ["Test", "ModelingToolkitStandardLibrary"]

test/runtests.jl

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using ModelingToolkitDesigner
2-
using ModelingToolkit, OrdinaryDiffEq, Test
3-
using TOML
2+
using ModelingToolkit, Test
3+
44
import ModelingToolkitStandardLibrary.Hydraulic.IsothermalCompressible as IC
55
import ModelingToolkitStandardLibrary.Blocks as B
66
import ModelingToolkitStandardLibrary.Mechanical.Translational as T
7-
using GLMakie
7+
88

99

1010
using ModelingToolkitDesigner: ODESystemDesign, DesignColorMap, DesignMap
@@ -52,21 +52,7 @@ fixed_volume_icon = lowercase(abspath(raw"icons\ModelingToolkitStandardLibrary\H
5252
design = ODESystemDesign(sys, path);
5353
@test design.components[2].xy[] == (0.5, 0.0)
5454
@test lowercase(abspath(design.components[3].icon)) == fixed_volume_icon
55-
56-
using GLMakie
57-
set_theme!(Theme(resolution=(800,600)))
58-
59-
6055
@test_nowarn ModelingToolkitDesigner.view(design)
61-
62-
# display(GLMakie.Screen(;title=design.file), fig)
63-
64-
# fig = ModelingToolkitDesigner.view(design.systems[4]);
65-
# display(GLMakie.Screen(), fig)
66-
6756
@test_nowarn ModelingToolkitDesigner.view(design, false)
6857

6958

70-
fig = ModelingToolkitDesigner.view(design, false)
71-
save("example.svg", fig)
72-

0 commit comments

Comments
 (0)