Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Empty protocol name handling for NIfTI MRS, and bug fix in osp_combineCoils
  • Loading branch information
CWDAVIESJENKINS committed Apr 26, 2022
1 parent 3d754ea commit 8d022f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coreg/OspreyCoreg.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
msg = 'Philips DATA files do not contain voxel geometry information.';
fprintf(msg);
error(msg);
end
end
case 'RAW'
msg = 'Philips RAW files do not contain voxel geometry information.';
fprintf(msg);
Expand Down
2 changes: 1 addition & 1 deletion load/osp_LoadNII.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
else
MRSCont.vendor = 'NIFTI';
end
if isfield(raw.nii_mrs.hdr_ext,'ProtocolName')
if isfield(raw.nii_mrs.hdr_ext,'ProtocolName') && ~isempty(raw.nii_mrs.hdr_ext.ProtocolName)
MRSCont.seq = raw.nii_mrs.hdr_ext.ProtocolName;
else
MRSCont.seq = 'NIFTI';
Expand Down
2 changes: 1 addition & 1 deletion process/osp_combineCoils.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
raw_ref_B = op_takesubspec(MRSCont.raw_ref{ll,kk},2);
raw_ref_C = op_takesubspec(MRSCont.raw_ref{ll,kk},3);
raw_ref_D = op_takesubspec(MRSCont.raw_ref{ll,kk},4);
MRSCont.raw_ref{ll,kk} = op_concatAverages(raw_ref_A,raw_ref_B,raw_ref_C,raw_ref_D);
MRSCont.raw_ref{ll,kk} = op_concatAverages(op_concatAverages(raw_ref_A,raw_ref_B),op_concatAverages(raw_ref_C,raw_ref_D));
end
end
else
Expand Down

0 comments on commit 8d022f8

Please sign in to comment.