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

Fix returning RF pulse amplitude and phase

parent ba42455e
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ end
for (fn, default_value) in ((:amplitude, 0.), (:phase, NaN))
@eval function $fn(bb::BaseBuildingBlock, time::Number)
for (key, block) in events(bb)
if block isa RFPulseComponent && start_time(bb, key) >= time >= end_time(bb, key)
if block isa RFPulseComponent && start_time(bb, key) <= time <= end_time(bb, key)
return $fn(block, time - start_time(bb, key))
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