Skip to content
Snippets Groups Projects
Unverified Commit 92cd24c0 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Remove unused parameter

parent 50e8a953
No related branches found
No related tags found
1 merge request!3Add InstantPulse and InstantGradient pulseq extension support
......@@ -319,7 +319,7 @@ function BuildingBlock(waveform::AbstractVector, events::AbstractVector; orienta
end
components = Union{GradientWaveform, Tuple{Number, EventComponent}}[]
for (index_grad, ((prev_time, prev_grad), (time, grad))) in enumerate(zip(waveform[1:end-1], waveform[2:end]))
for ((prev_time, prev_grad), (time, grad)) in zip(waveform[1:end-1], waveform[2:end])
duration = time - prev_time
if norm(prev_grad) <= 1e-12 && norm(grad) <= 1e-12
push!(components, NoGradient(duration))
......@@ -334,9 +334,6 @@ function BuildingBlock(waveform::AbstractVector, events::AbstractVector; orienta
end
end
end
#for comp in components
# scanner_constraints!(comp)
#end
return BuildingBlock(components)
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