Closed fzimmermann89 closed 10 months ago
Ok, this might be solved by #167, sorry....
Yes, it is fixed with #167,
namespace(type='grad',
channel='z',
waveform=array([0., 1., 1., 0.]),
delay=0.0,
tt=array([0. , 0.0001, 0.0002, 0.0003]),
shape_dur=0.00030000000000000003,
area=0.00020000000000000004,
first=0.0,
last=0.0)
So thank you for the superb response time of negative 6 hours ! 🎉🎉🎉 ;-)
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: