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

Feature: evaluate_labels function in Sequence #164

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

FrankZijlstra
Copy link
Collaborator

This implements the evalLabels function from upstream pulseq: https://github.com/pulseq/pulseq/blob/125c772180f324967091dc28a0e5a6b20b96faa9/matlab/%2Bmr/%40Sequence/Sequence.m#L1056

Renamed to evaluate_labels to be consistent with the naming of other Sequence functions.

This function tracks labels (or label evolutions) through the sequence. Either returns the final values, or label evolutions (e.g. per block, per ADC, or whenever the label changes).

A small supporting change in event_lib.get_block was made to always set the label field in the returned block (None if no labels).

- Changed `get_block` to always set the `label` field in the returned block (None if no labels)
@btasdelen btasdelen merged commit 5b56300 into imr-framework:dev Jan 16, 2024
4 checks passed
@schuenke schuenke mentioned this pull request Jun 6, 2024
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