Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable reading of JEMRIS-generated .seq files #30

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Enable reading of JEMRIS-generated .seq files #30

merged 1 commit into from
Jun 1, 2020

Conversation

tonggehua
Copy link
Contributor

This code edit is a quick fix to enable JEMRIS-generated pulseq .seq files (of an older version) to be read. The difference between the old and new Pulseq versions is in the number of fields for RF and trapezoidal gradients.

  • For RF pulses, PyPulseq 1.2.0 version uses [id, amplitude, mag_id, phase_id, delay, freq, phase], but the JEMRIS version uses [id, amplitude, mag_id, phase_id, freq, phase]
  • For trapezoidal gradients, PyPulseq 1.2.0 uses [id, amplitude, rise, flat, fall, delay], but JEMRIS uses [id, amplitude, rise, flat, fall]

NOTE : An empty section, [JEMRIS], must be manually added to the seq file before seq.read() can be called to parse it.

Example:

# Pulseq sequence format
# Created by JEMRIS 2.8.3


[JEMRIS]

[DEFINITIONS]
id 1
Num_Blocks 192

# Format of blocks:
# #  D RF  GX  GY  GZ ADC
[BLOCKS]
  1  0  1   0   0   0  0
  2  1  0   0   0   0  0
  3  0  0   1   2   0  0

......

An empty section, [JEMRIS], must be manually added to the seq file before seq.read() can be called to parse it.
@sravan953 sravan953 self-assigned this Jun 1, 2020
@sravan953 sravan953 added the enhancement New feature or request label Jun 1, 2020
@sravan953 sravan953 merged commit 4a6e036 into imr-framework:master Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants