Skip to content

Commit ae944bf

Browse files
committed
Don't force NotConnected to only parameterize ConnectionRules
- This caused bugs with the Neuroblox learning pipeline
1 parent ffc0bc2 commit ae944bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphDynamics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ abstract type ConnectionRule end
402402
(c::ConnectionRule)(src, dst, t) = c(src, dst)
403403
Base.zero(::T) where {T <: ConnectionRule} = zero(T)
404404

405-
struct NotConnected{CR <: ConnectionRule} end
405+
struct NotConnected{CR} end
406406
Base.getindex(::NotConnected{CR}, inds...) where {CR} = zero(CR)
407407
Base.copy(c::NotConnected) = c
408408
struct ConnectionMatrix{N, CR, Tup <: NTuple{N, NTuple{N, Union{NotConnected{CR}, AbstractMatrix{CR}}}}}

0 commit comments

Comments
 (0)