Skip to content

Commit 7561430

Browse files
committed
check for function egal instead of euqual
1 parent 37558fe commit 7561430

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/component_functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ dispatchT(T::Type{<:EdgeModel}) = EdgeModel
582582
# TODO: introduce batchequal hash for faster batching of component models
583583
batchequal(a, b) = false
584584
function batchequal(a::ComponentModel, b::ComponentModel)
585-
compf(a) == compf(b) || return false
586-
compg(a) == compg(b) || return false
585+
compf(a) === compf(b) || return false
586+
compg(a) === compg(b) || return false
587587
fftype(a) == fftype(b) || return false
588588
dim(a) == dim(b) || return false
589589
outdim(a) == outdim(b) || return false

src/construction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ function batch_by_idxs(v::AbstractVector, batches::Vector{Vector{Int}})
325325
end
326326

327327
_find_identical(v::ComponentModel, indices) = [collect(indices)]
328-
function _find_identical(v::Vector, indices)
328+
function _find_identical(v::Vector{T}, indices) where {T<:ComponentModel}
329329
idxs_per_type = Vector{Int}[]
330-
unique_comp = []
330+
unique_comp = T[]
331331
for i in eachindex(v)
332332
found = false
333333
for j in eachindex(unique_comp)

0 commit comments

Comments
 (0)