Skip to content

Commit 3878dcd

Browse files
author
Jon-Fredrik Nielsen
committed
b1 scaling file is now block with max RF amp
On branch develop modified: preflightcheck.m
1 parent 3e4aaa1 commit 3878dcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

+toppe/preflightcheck.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function preflightcheck(entryFile, seqstampFile, sysGE)
6969
modArr = toppe.tryread(@toppe.readmodulelistfile, moduleListFile);
7070

7171
% Check that:
72-
% - all .mod files use the same peak RF limit (e.g., 0.25 Gauss)
72+
% - b1CheckFile represents the RF pulse with peak RF amplitude across the whole the sequence
7373
% - all .mod files used to acquire data have the same number of ADC samples as readoutFilterFile.
7474
[~,~,~,~,~,~,~,hdr] = toppe.readmod(b1CheckFile);
7575
b1limit = hdr.b1max;
@@ -82,8 +82,8 @@ function preflightcheck(entryFile, seqstampFile, sysGE)
8282
error(sprintf('Number of samples in %s and %s do not match (must be same across all .mod files containing ADC windows)', ...
8383
readoutFilterFile, modArr{ii}.fname));
8484
end
85-
if hdr.b1max ~= b1limit
86-
error(sprintf('B1 limit in %s does not match %s (must be the same across all .mod files)', ...
85+
if modArr{ii}.hasRF & hdr.b1max > b1limit
86+
error(sprintf('Peak B1 limit in %s cannot exceed the b1 scaling .mod file in %s', ...
8787
modArr{ii}.fname, entryFile));
8888
end
8989
end

0 commit comments

Comments
 (0)