imr-framework / pypulseq

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

Plot Sequence with trigger #52

Closed asgaspar closed 3 years ago

asgaspar commented 3 years ago

Describe the bug I'm using the make_trigger function to create a trigger object, this way:

trig = make_trigger(channel='physio1', delay=100e-6, duration=Tdelay_trig, system=system)

But then when I tried to plot the sequence with seq.plot() I got this error:

image

To Reproduce I used your gre_walkthrough to make sure there was not another cofounding factor, you can see the code here: https://colab.research.google.com/drive/19MruYk0W0AMulph78q_yqywCemuLK0jW?usp=sharing

Desktop (please complete the following information):

Thanks a lot!

sravan953 commented 3 years ago

Thank you for reporting this Andreia:) The latest dev commit should fix this. Please let me know!

asgaspar commented 3 years ago

Yes, it is fixed :) Thank you!