We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c30760 commit 02a4c85Copy full SHA for 02a4c85
src/systems/connectors.jl
@@ -1,4 +1,10 @@
1
-get_connection_type(s) = getmetadata(unwrap(s), VariableConnectType, Equality)
+function get_connection_type(s)
2
+ s = unwrap(s)
3
+ if istree(s) && operation(s) === getindex
4
+ s = arguments(s)[1]
5
+ end
6
+ getmetadata(s, VariableConnectType, Equality)
7
+end
8
9
function with_connector_type(expr)
10
@assert expr isa Expr && (expr.head == :function || (expr.head == :(=) &&
0 commit comments