Skip to content
Snippets Groups Projects
Verified Commit a4fd5e03 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix lambda function definition syntax

parent 93b37253
No related branches found
No related tags found
No related merge requests found
......@@ -72,11 +72,11 @@ get_children_indices(ao::AbstractOverlapping) = 1:length(waveform(ao))
function Base.getindex(ao::AbstractOverlapping, index::Integer)
grad_like_block = waveform(ao)[index]
inter = interruptions(ao)
first_interrupt = findfirst(int => int[2] == index, inter)
first_interrupt = findfirst(int -> int[2] == index, inter)
if isnothing(first_interrupt)
return grad_like_block
else
last_interrupt = findlast(int => int[2] == index, inter)
last_interrupt = findlast(int -> int[2] == index, inter)
return SingleInterrupted(grad_like_block, inter[first_interrupt:last_interrupt])
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment