pypulseq icon indicating copy to clipboard operation
pypulseq copied to clipboard

t_ktraj not returned from seq.calculate_kspace

Open Nikbert opened this issue 6 months ago • 3 comments

Hello,

apparently seq.calculate_kspace() in pypulseq does not return t_ktraj. t_ktraj is very helpful when comparing measured and nominal trajectories.

[k_traj_adc, k_traj, t_excitation, t_refocusing, t_adc] = seq.calculate_kspace() vs. Matlab: [ktraj_adc, t_adc, ktraj, t_ktraj, t_excitation, t_refocusing, slicepos, t_slicepos] = seq.calculateKspace();

It would be very helpful if calculateKspace() could be extended to the same functionality as in the Matlab Version.

All the Best

Nikbert avatar May 14 '25 13:05 Nikbert

I just added t_ktraj to the return statement of seq.calculate_kspace(), as it was already used there . Now it works for me. I think it would make sense to apply this change to the master branch to make the behavior consistent with pulseq.

Nikbert avatar May 14 '25 14:05 Nikbert

OK, if the modification will be approved we have to change "ext_test_report.py", in line 33 as well. To expect the additional value t_ktraj.

Nikbert avatar May 14 '25 17:05 Nikbert

this issue would be fixed with pullrequest #282

Nikbert avatar May 14 '25 19:05 Nikbert