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

Fix phase calculation

parent e2e1a4e7
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ end
duration(fp::GenericPulse) = maximum(fp.time)
amplitude(fp::GenericPulse) = maximum(abs.(fp.amplitude))
effective_time(pulse::GenericPulse) = pulse.time[findmax(abs.(pulse.amplitude))]
phase(fp::GenericPulse) = pulse.phase[findmax(abs.(pulse.amplitude))]
phase(pulse::GenericPulse) = pulse.phase[findmax(abs.(pulse.amplitude))[2]]
flip_angle(pulse::GenericPulse) = sum(get_weights(pulse) .* pulse.amplitude) * 360
function time_halfway_flip(pulse::GenericPulse)
w = get_weights(pulse)
......
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