Skip to content

Commit ed58f9c

Browse files
Merge pull request #5 from AayushSabharwal/as/registration-ready
refactor!: make the package ready for registration
2 parents e532511 + 9dd2017 commit ed58f9c

15 files changed

+1201
-1007
lines changed

LICENSE

Lines changed: 661 additions & 21 deletions
Large diffs are not rendered by default.

Project.toml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
name = "StateSelection"
22
uuid = "64909d44-ed92-46a8-bbd9-f047dfbdc84b"
3-
version = "0.2.1"
43
authors = ["JuliaHub", "Inc. and other contributors"]
4+
version = "1.0.0"
55

66
[deps]
7+
BipartiteGraphs = "caf10ac8-0290-4205-88aa-f15908547e8d"
78
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
89
FindFirstFunctions = "64ca27bc-2ba2-4a57-88aa-44e436879224"
910
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1011
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
12+
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1113
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
1214
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1315
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
1416

17+
[weakdeps]
18+
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"
19+
20+
[extensions]
21+
StateSelectionDeepDiffsExt = "DeepDiffs"
22+
1523
[compat]
24+
BipartiteGraphs = "0.1.2"
1625
DocStringExtensions = "0.9.3"
1726
FindFirstFunctions = "1.2.0"
1827
Graphs = "1.10.0"
1928
LinearAlgebra = "1.11.0"
29+
OrderedCollections = "1"
2030
Setfield = "1.1.1"
2131
SparseArrays = "1.11.0"
2232
UnPack = "1.0.2"
2333
julia = "1.9"
2434

25-
[weakdeps]
26-
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"
27-
28-
[extensions]
29-
StateSelectionDeepDiffsExt = "DeepDiffs"
30-
3135
[extras]
3236
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3337

ext/StateSelectionDeepDiffsExt.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
module StateSelectionDeepDiffsExt
22

33
using DeepDiffs
4-
using StateSelection.BipartiteGraphs: Label,
5-
BipartiteAdjacencyList, unassigned,
6-
HighlightInt
4+
using BipartiteGraphs: Label, BipartiteAdjacencyList, unassigned, HighlightInt
75
using StateSelection: SystemStructure,
86
MatchedSystemStructure,
97
SystemStructurePrintMatrix
@@ -187,4 +185,4 @@ function DeepDiffs.deepdiff(old::Union{MatchedSystemStructure, SystemStructure},
187185
Base.print_matrix(stdout, SystemStructureDiffPrintMatrix(new_sspm, old_sspm))
188186
end
189187

190-
end
188+
end

src/StateSelection.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ using DocStringExtensions
44
using Setfield: @set!, @set
55
using UnPack: @unpack
66
using Graphs
7+
import SparseArrays
8+
import OrderedCollections: OrderedSet
79

810
# Graph Types
9-
function invview end
10-
function complete end
11-
include("graph/bipartite.jl")
11+
using BipartiteGraphs
1212
include("graph/diff.jl")
13-
using .BipartiteGraphs
1413

1514
# Math library
1615
include("math/bareiss.jl")
@@ -23,12 +22,15 @@ include("interface.jl")
2322
# Structural transformation passes
2423
include("singularity_removal.jl")
2524
include("pantelides.jl")
26-
include("modia_tearing.jl")
2725
include("tearing.jl")
26+
include("modia_tearing.jl")
2827
include("partial_state_selection.jl")
2928

3029
# Utilities
3130
include("debug.jl")
3231
include("utils.jl")
3332

33+
export DiffGraph, bareiss, CLIL, find_eq_solvables!, SelectedState
34+
export TearingAlgorithm, TearingResult, ModiaTearing, DummyDerivativeTearing
35+
3436
end

src/StructuralTransformations.jl

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/debug.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
using .BipartiteGraphs: Label, BipartiteAdjacencyList
1+
using BipartiteGraphs: Label, BipartiteAdjacencyList
32

43
struct SSAUses{T}
54
eqs::Vector{T} # equation uses

0 commit comments

Comments
 (0)