imr-framework / pypulseq

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

Open sequence output file in "with" context to be sure the file is closed #66

Closed mavel101 closed 2 years ago

mavel101 commented 2 years ago

Currently, the output sequence is not closed at all. This commit puts the open statement in a with context to be sure, the file is closed properly.