Skip to content

Commit 86cfae6

Browse files
authored
fix Symbolic Indexing with Nums. (#34)
1 parent 37a591d commit 86cfae6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GraphDynamics"
22
uuid = "bcd5d0fe-e6b7-4ef1-9848-780c183c7f4c"
3-
version = "0.4.3"
3+
version = "0.4.4"
44

55
[deps]
66
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"

ext/MTKExt.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ module MTKExt
22

33
using ModelingToolkit: ModelingToolkit, Num
44
using Symbolics: Symbolics, tosymbol
5-
using GraphDynamics: GraphDynamics, GraphSystem
5+
using GraphDynamics: GraphDynamics, GraphSystemParameters, PartitionedGraphSystem
66
using SymbolicIndexingInterface: SymbolicIndexingInterface
77

8-
function SymbolicIndexingInterface.is_variable(sys::GraphSystem, var::Num)
8+
function SymbolicIndexingInterface.is_variable(sys::PartitionedGraphSystem, var::Num)
99
SymbolicIndexingInterface.is_variable(sys, tosymbol(var; escape=false))
1010
end
1111

12-
function SymbolicIndexingInterface.variable_index(sys::GraphSystem, var::Num)
12+
function SymbolicIndexingInterface.variable_index(sys::PartitionedGraphSystem, var::Num)
1313
SymbolicIndexingInterface.variable_index(sys, tosymbol(var; escape=false))
1414
end
1515

16-
function SymbolicIndexingInterface.is_parameter(sys::GraphSystem, var::Num)
16+
function SymbolicIndexingInterface.is_parameter(sys::PartitionedGraphSystem, var::Num)
1717
SymbolicIndexingInterface.is_parameter(sys, tosymbol(var; escape=false))
1818
end
1919

20-
function SymbolicIndexingInterface.parameter_index(sys::GraphSystem, var::Num)
20+
function SymbolicIndexingInterface.parameter_index(sys::PartitionedGraphSystem, var::Num)
2121
SymbolicIndexingInterface.parameter_index(sys, tosymbol(var; escape=false))
2222
end
2323

24-
function SymbolicIndexingInterface.is_independent_variable(sys::GraphSystem, var::Num)
24+
function SymbolicIndexingInterface.is_independent_variable(sys::PartitionedGraphSystem, var::Num)
2525
SymbolicIndexingInterface.is_independent_variable(sys, tosymbol(var; escape=false))
2626
end
2727

0 commit comments

Comments
 (0)