AttributeError when calling calculate_kspace() in sequence.py
HSun981 opened this issue · 2 comments
Describe the bug
AttributeError: 'Sequence' object has no attribute 'gradient_waveforms'
To Reproduce
I called seq.calculate_kspace() where seq is initialized as a Sequence object!
Expected behavior
I could not find the attribute gradient_waveforms
Desktop (please complete the following information):
pypulseq
version: 1.4.0
Additional context
Add any other context about the problem here.
Hi @HSun981! gradient_waveforms
function is removed, which made calculate_kspace
non-functional (should be removed as well). You can see the discussion here: #107 and #109.
It is replaced by calculate_kspacePP
function, which should work as a drop-in replacement.
If you really want to use calculate_kspace
or gradient_waveforms
, you can add those functions separately to your project with slight modifications to the code shared in PR #109.
I am closing this issue as there is already an open issue related to this, but if you have more questions/comments, feel free to comment to the original issue.
Thanks for the information:)! I should've checked more carefully. Have a good day!