imr-framework / pypulseq

Pulseq in Python
https://pypulseq.readthedocs.io
GNU Affero General Public License v3.0
115 stars 62 forks source link

Bug in block length when using arbitrary RF pulses or gradients #38

Closed Mmj94 closed 2 years ago

Mmj94 commented 3 years ago

Describe the bug Sequences won't play when any of the blocks have arbitrary RF or gradients with the same length. Based on trial/error experiments, seems like the gradient waveforms have to have a slightly longer duration compared to the other components of the block (RF pulse signal, adc).

To Reproduce Create an arbitrary gradient waveform using make_arbitrary_grad Design ADC to have the same number of samples as the gradient created seq.add_block(gradient,adc)

Expected behavior The sequence won't play with the last version of the interpreter.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

sravan953 commented 3 years ago

Hi @Mmj94! Is this still an issue?