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

Do not include NaNs in composite pulse phases

parent d20520cf
No related branches found
No related tags found
No related merge requests found
Pipeline #24068 canceled
...@@ -111,13 +111,13 @@ function make_generic(comp::CompositePulse) ...@@ -111,13 +111,13 @@ function make_generic(comp::CompositePulse)
start_time = t1 + (index - 1) * comp.pulse_time - duration(comp.pulses[index]) / 2 start_time = t1 + (index - 1) * comp.pulse_time - duration(comp.pulses[index]) / 2
push!(times, start_time) push!(times, start_time)
push!(amplitude, 0.) push!(amplitude, 0.)
push!(phase, NaN) push!(phase, generic.phase[1])
append!(times, start_time .+ generic.time) append!(times, start_time .+ generic.time)
append!(amplitude, generic.amplitude) append!(amplitude, generic.amplitude)
append!(phase, generic.phase) append!(phase, generic.phase)
push!(times, times[end]) push!(times, times[end])
push!(amplitude, 0.) push!(amplitude, 0.)
push!(phase, NaN) push!(phase, generic.phase[end])
end end
return GenericPulse(times, amplitude, phase) return GenericPulse(times, amplitude, phase)
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