@@ -80,14 +80,14 @@ function waveform(bb::BaseBuildingBlock)
for(_,block)inwaveform_sequence(bb)
new_time=result[end][1]+max(duration(block),0)
prev_grad=result[end][2]
ifblockisaNoGradientBlock
@assertall(abs.(prev_grad)<=1e-12)"$(typeof(bb)) inserts NoGradientBlock before the gradient is zero. This is probably caused by an improper implementation of this BuildingBlock."
ifblockisaNoGradient
@assertall(abs.(prev_grad)<=1e-12)"$(typeof(bb)) inserts NoGradient before the gradient is zero. This is probably caused by an improper implementation of this BuildingBlock."
push!(result,(new_time,prev_grad))
elseifblockisaConstantGradientBlock
@assertall(gradient_strength(block).≈prev_grad)"$(typeof(bb)) inserts ConstantGradientBlock that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
elseifblockisaConstantGradient
@assertall(gradient_strength(block).≈prev_grad)"$(typeof(bb)) inserts ConstantGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
push!(result,(new_time,prev_grad))
elseifblockisaChangingGradientBlock
@assertall(block.gradient_strength_start.≈prev_grad)"$(typeof(bb)) inserts ChangingGradientBlock that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
elseifblockisaChangingGradient
@assertall(block.gradient_strength_start.≈prev_grad)"$(typeof(bb)) inserts ChangingGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."