diff --git a/src/containers/building_blocks.jl b/src/containers/building_blocks.jl index 7867af5c090fbc81afd202a4bffa571287a28178..43b21f5f63087cd200c65212f8b4e46cc62bd40b 100644 --- a/src/containers/building_blocks.jl +++ b/src/containers/building_blocks.jl @@ -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