-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge develop branch into main (#16)
* Ignore blocks containing only labels On branch develop modified: isdelayblock.m modified: seq2ceq.m * Wrapper for seq2ceq On branch develop new file: seq2seg.m * Squashed commit of the following: Support for multiple ADC events Add number of ADC samples to .mod header Store dwell time (in us) in .mod header int array modified: ceq2ge.m Allow multiple ADC events modified: compareblocks.m On branch develop modified: matlab/ceq2ge.m modified: matlab/compareblocks.m * Rename 'group' to 'segment' On branch develop modified: pulCeq.h * Working on alternate figure explaining sequence model On branch develop new file: model2.svg * On branch develop modified: model2.svg * On branch develop modified: model2.svg * Add physio trigger (#15) Add cardiac/physio trigger to ceq.loop array, and write it to scanloop.txt. On branch develop_trig modified: ceq2ge.m modified: getdynamics.m modified: seq2ceq.m new file: getblocktype.m Co-authored-by: Jon-Fredrik Nielsen <[email protected]> * Bug fix On branch develop modified: ceq2ge.m --------- Co-authored-by: Jon-Fredrik Nielsen <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,211 additions
and
52 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
function T = getblocktype(block) | ||
% function T = getblocktype(block) | ||
% | ||
% Returns a vector with flags indicating block type/properties. | ||
% | ||
% T = [<has rf/gradient/adc> ... | ||
% <has TRID label> ... | ||
% <has physio1 trigger> ... | ||
% <is pure delay block>] | ||
|
||
minDelayBlockDuration = 20e-6 + 100*eps; | ||
|
||
% Are waveforms and/or ADC events defined? | ||
T(1) = isempty(block.rf) & isempty(block.adc) & ... | ||
isempty(block.gx) & isempty(block.gy) & isempty(block.gz); | ||
T(1) = ~T(1); | ||
|
||
% Does the block define a TRID (start of segment) label? | ||
T(2) = false; | ||
if isfield(block, 'label') | ||
for ii = 1:length(block.label) | ||
if strcmp(block.label(ii).label, 'TRID') | ||
T(2) = true; | ||
break; | ||
end | ||
end | ||
end | ||
|
||
% Does the block contain a cardiac trigger? | ||
T(3) = false; | ||
if isfield(block, 'trig') | ||
if strcmp(block.trig.channel, 'physio1') | ||
T(3) = true; | ||
end | ||
end | ||
|
||
% Is this a pure delay block? | ||
T(4) = ~T(1) & block.blockDuration >= minDelayBlockDuration; | ||
|
||
%assert( ~ (T(1) | block.blockDuration < minDelayBlockDuration), ... | ||
% sprintf('Duration of block containing rf/gradient/adc events must exceed %es', minDelayBlockDuration) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
% Call 'seq2ceq' by the name 'seq2seg' | ||
function seg = seq2seg(seqarg, varargin) | ||
|
||
seg = seq2ceq(seqarg, varargin{:}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters