Skip to content

t_ktraj not returned from seq.calculate_kspace #281

Open

Description

@Nikbert

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

Activity

  1. Nikbert commented on May 14, 2025

    @Nikbert
    Author

    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.

  2. Nikbert commented on May 14, 2025

    @Nikbert
    Author

    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.

  3. Nikbert commented on May 14, 2025

    @Nikbert
    Author

    this issue would be fixed with pullrequest #282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions