Skip to content

fix: Match unit convention of pulse.freq_offset between pydissect and import_pulseq_rs to Hz - #197

Merged
J-Endres merged 1 commit into
MRsources:release-v1.1.3from
F-Dietz:fix_ImporterUnits
Oct 19, 2026
Merged

J-Endres merged 1 commit into
MRsources:release-v1.1.3from
F-Dietz:fix_ImporterUnits

Conversation

@F-Dietz

@F-Dietz F-Dietz commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Pulseq zero and pydissect both parse the frequency offset in Hz. In import_pulseq_rs rad/s was used.
Fixed inconsitent choice of units. Frequency offset unit was set to Hz.

@J-Endres
J-Endres changed the base branch from main to release-v1.1.3 October 19, 2026 08:11
@J-Endres
J-Endres merged commit f413bd5 into MRsources:release-v1.1.3 Oct 19, 2026
27 checks passed
@J-Endres

Copy link
Copy Markdown
Collaborator

Will be published in the next version, v1.1.3

This was referenced Oct 19, 2026
J-Endres added a commit that referenced this pull request Oct 19, 2026
* fix: Match unit convention of pulse.freq_offset between pydissect and import_pulseq_rs to Hz (#197)

* Speed up pulseq_rs import by integrating gradient moments in NumPy. (#194)

The parser was already fast. The conversion called PyGradient.integrate once per event. Moments now come from one cumulative piecewise-linear integral per gradient, which covers trapezoids, extended trapezoids, and arbitrary shapes. Results match the old importer.

exact_trajectories=True (default):

| File | Old | New |
|---|---:|---:|
| pp_mprage.seq | 26 s | 3.6 s |
| pp_radial.seq | 0.80 s | 0.22 s |
| mrseq_spiral.seq | 5.6 s | 0.43 s |
| pp_tse.seq | 0.41 s | 0.10 s |
| mrseq_radial_1_5.seq | 3.0 s | 0.24 s |
| mrseq_spiral_1.5.seq | 3.0 s | 0.23 s |

* Cast values to native float before writing mrd header (#189)

* chore: update version number and changelog

* feat: update pulseq-rs for more fixes and better pulseq support

* feat: add FID graph creation function

* chore: link pulsq-zero in docs, remove submodule

* chore: add changelog to docs

* chore: rename version to 1.2.0

* fix: zero size for one of the phantom axes no longer crash prepass

---------

Co-authored-by: FDietz <felix.dietz@fau.de>
Co-authored-by: mzaiss <mzaiss@users.noreply.github.com>
Co-authored-by: David Schote <42237900+schote@users.noreply.github.com>
Co-authored-by: Jonathan Endres <jonathan.endres@uk-erlangen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants