Skip to content

Commit

Permalink
Merge pull request #736 from HJZollner/develop
Browse files Browse the repository at this point in the history
[BUG FIX] - Load/Process crash for phantom data - osp_combineCoils/osp_Ph…
  • Loading branch information
HJZollner authored May 19, 2024
2 parents e176430 + e5a5d43 commit c2b168a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion process/osp_PhantomReferencing.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
[refShift, refFWHM] = osp_XReferencing(dataToFit,[3.03 3.22],[1 1],[1.85 4.2]);
if abs(refShift) > 10 % This a huge shift. Most likley wrong and we will try it again with tNAA only
refSinglets=[2.01];
[refShift, refFWHM] = osp_XReferencing(raw,2.01,1,[1.85 4.2]);% determine frequency shift
[refShift, refFWHM] = osp_XReferencing(dataToFit,2.01,1,[1.85 4.2]);% determine frequency shift
end
elseif (best_ix==1 && best_shift<0.08) || (nearest(1)<0.03)
% found a close match for a 0ppm reference, use it
Expand Down
1 change: 1 addition & 0 deletions process/osp_combineCoils.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
cweights.ref = 'raw';
raw_comb = op_addrcvrs(MRSCont.raw_uncomb{metab_ll,kk},1,'h',cweights);
cweights = op_getcoilcombos(MRSCont.raw_ref_uncomb{ref_ll,kk},1,'h');
cweights.ref = 'raw_ref';
raw_ref_comb = op_addrcvrs(MRSCont.raw_ref_uncomb{ref_ll,kk},1,'h',cweights);
if MRSCont.flags.isUnEdited
raw_comb.flags.isUnEdited = 1;
Expand Down

0 comments on commit c2b168a

Please sign in to comment.