Skip to content

Commit 6123826

Browse files
Merge pull request #113 from hMRI-group/fix-B1case-outOfLoop
Prevent missing B1 map for MTsat spamming the log
2 parents f299d4d + 9051686 commit 6123826

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Most recent version numbers *should* follow the [Semantic Versioning](https://se
2626
- more informative error if optimization toolbox not present during NLLS R2* calculation
2727
- fix 3D-EPI B1 mapping not using b1defaults for Triotim scanner
2828
- use cell- instead of char- array to accommodate filenames of unequal length in RFsens
29+
- prevent missing B1 map for MTsat spamming the log
2930

3031
## [v0.6.1]
3132
### Fixed

hmri_create_MTProt.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,12 @@
807807
switch mpm_params.MTsatB1CorrectionModel
808808
case 'helms'
809809
B1_mtw=1;
810-
if isempty(f_T)
810+
if isempty(f_T) && p==1 % only print to the log the first time
811811
hmri_log('WARNING: MTsat B1-correction using the Helms model was selected but no B1 map data was found. MTsat will only be corrected with the quadratic model from Helms, et al. (MRM 2008).', mpm_params.defflags)
812812
end
813813
case 'lipp'
814814
B1_mtw=f_T;
815-
if isempty(f_T)
815+
if isempty(f_T) && p==1 % only print to the log the first time
816816
hmri_log('WARNING: MTsat B1-correction using the Lipp model was selected but no B1 map data was found. MTsat will not be B1 corrected.', mpm_params.defflags)
817817
end
818818
end

0 commit comments

Comments
 (0)