imr-framework / pypulseq

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

More pythonic handling of `shape_pieces` in `waveforms_and_times` #130

Closed FrankZijlstra closed 10 months ago

FrankZijlstra commented 10 months ago

Changes shape_pieces to Python lists, allowing them to be concatenated without a loop. Cleaner code, and slightly faster too.

Tested it with a few sequences and it produced the same wave_data as with the old code.