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

Turn WaitBlock into another GenericOverlapping

parent 486194f6
No related branches found
No related tags found
No related merge requests found
...@@ -295,6 +295,6 @@ Replaces a [`BuildingBlock`](@ref) or whole sequence with a generic version. ...@@ -295,6 +295,6 @@ Replaces a [`BuildingBlock`](@ref) or whole sequence with a generic version.
This replaces all functional RF pulses and gradient waveforms with their generic equivalents. This replaces all functional RF pulses and gradient waveforms with their generic equivalents.
""" """
make_generic(grad::GradientBlock) = grad function make_generic end
end end
\ No newline at end of file
...@@ -33,12 +33,13 @@ GenericOverlapping(other_waveform::AbstractOverlapping) = GenericOverlapping(dur ...@@ -33,12 +33,13 @@ GenericOverlapping(other_waveform::AbstractOverlapping) = GenericOverlapping(dur
make_generic(ao::AbstractOverlapping) = GenericOverlapping( make_generic(ao::AbstractOverlapping) = GenericOverlapping(
duration(ao), duration(ao),
make_generic.(waveform_sequence(ao)), waveform_sequence(ao),
[(index=i.index, time=i.time, object=make_generic(i.object)) for i in interruptions(ao)] [(index=i.index, time=i.time, object=make_generic(i.object)) for i in interruptions(ao)]
) )
waveform_sequence(go::GenericOverlapping) = go.waveform waveform_sequence(go::GenericOverlapping) = go.waveform
interruptions(go::GenericOverlapping) = go.interruptions interruptions(go::GenericOverlapping) = go.interruptions
make_generic(wait::WaitBlock) = GenericOverlapping(wait.duration, [], [])
end end
\ No newline at end of file
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