Skip to content

Commit

Permalink
Update osp_LoadSDAT.m
Browse files Browse the repository at this point in the history
Fix water reference loading for Philips product MEGA-PRESS, which does not store the water ref in separate ON and OFF dynamics (unlike the JHU patch).
  • Loading branch information
schorschinho committed Mar 7, 2024
1 parent dba4eb1 commit 2e5eb27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion load/osp_LoadSDAT.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
raw_ref = op_combine_water_subspecs(raw_ref,0);
raw_ref.flags.isUnEdited = 1;
elseif MRSCont.flags.isMEGA
raw_ref = io_loadspec_sdat(MRSCont.files_ref{ref_ll,kk},2,MRSCont.flags.isSERIES);
try % GO 03042024: this works for the JHU patch only but throws an error for product MEGA
raw_ref = io_loadspec_sdat(MRSCont.files_ref{ref_ll,kk},2,MRSCont.flags.isSERIES);
catch % GO 03042024: this works for product MEGA
raw_ref = io_loadspec_sdat(MRSCont.files_ref{ref_ll,kk},1,MRSCont.flags.isSERIES);
end
raw_ref = op_combine_water_subspecs(raw_ref,0);
raw_ref.flags.isMEGA = 1;
elseif MRSCont.flags.isHERMES
Expand Down

0 comments on commit 2e5eb27

Please sign in to comment.