imr-framework / pypulseq

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

Previous working TSE script generates error #51

Closed tonggehua closed 3 years ago

tonggehua commented 3 years ago

Describe the bug I tried to run the TSE notebook that previously worked under the version 1.2.0post4; with the current 1.3.1post1, it produces an error at the first make_sinc_pulse

To Reproduce

Expected behavior This error should happen at the very first make_sinc_pulse:

    rf_ref, gz, _ = make_sinc_pulse(flip_angle=flip_ref, system=system, duration=t_ref, slice_thickness=thk,
TypeError: cannot unpack non-iterable types.SimpleNamespace object

Desktop (please complete the following information):

sravan953 commented 3 years ago

Hi! Please try passing return_gz=True to the make_sinc_pulse() call, that should fix your issue. Let me know!

tonggehua commented 3 years ago

That worked. Should this be part of the release notes?