Skip to content

Shift in trajectory between TR with calculate_kspace() #175

Closed Answered by btasdelen
felixlandmeyer asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @felixlandmeyer. I ran your test case. The result is indeed as you shared. Here is the reason:

Spirals are not starting from zero. I guess the PyPulseq 1.3.1 was adding the zeros, but v1.4.0 is not. I feel like there should be a warning for such cases, I will take a look.

If you go ahead and uncomment line 36 in your Pulseq v1.4.0 and change it to spiral = np.concatenate((np.zeros((1,2)), spiral, np.zeros((1,2))), axis=0) to add zeros to the beginning and end (you don't need 5 zeros, 1 should be enough), here is the plot I get:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@felixlandmeyer
Comment options

Answer selected by felixlandmeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants