You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of pypulseq.split_gradient.split_gradient reads
Splits a trapezoidal gradient into slew up, flat top and slew down. Returns the individual gradient parts (slew up, flat top and slew down) as extended trapezoid gradient objects. The delays in the individual gradient events are adapted such that addGradients(…) produces an gradient equivalent to ‘grad’.
If I am not mistaken, the "equivalent gradient" should not have a max. waveform of 3, but 1.
I believe there might be a bug in add_gradients.
--> Somewhere in the interpolation logic, both rising block gets and falling block get a flat part added where they should be 0 (the flat part is a separate block..)
This also happens in more realistic settings, but this is the smallest repoducing code.
For reference, the split (pypulseq.split_gradient(g1)) is:
The documentation of
pypulseq.split_gradient.split_gradient
readsbut
prints
and
If I am not mistaken, the "equivalent gradient" should not have a max. waveform of 3, but 1.
I believe there might be a bug in
add_gradients
.--> Somewhere in the interpolation logic, both rising block gets and falling block get a flat part added where they should be 0 (the flat part is a separate block..)
This also happens in more realistic settings, but this is the smallest repoducing code.
For reference, the split (
pypulseq.split_gradient(g1)
) is:The text was updated successfully, but these errors were encountered: