Skip to content

Commit

Permalink
Merge pull request #731 from alexcraven/develop
Browse files Browse the repository at this point in the history
Partial fix #730: mixed types for basisSetFile
  • Loading branch information
HJZollner authored Apr 24, 2024
2 parents 3d1e548 + 24c84bd commit dd287a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fit/code/osp_fitInitialise.m
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@
MRSCont.opts.fit.basisSetFile{2} = [path filesep Bo '_' seq '_' MRSCont.vendor '_' te 'ms_noMM_diff1.BASIS'];
end
elseif strcmpi(exten, '.basis')
% If it has the .basis extension, we don't have to change
% anything.
% If it has the .basis extension, no conversion is necessary
if (~isa(MRSCont.opts.fit.basisSetFile,'cell'))
MRSCont.opts.fit.basisSetFile={MRSCont.opts.fit.basisSetFile}
end
else
error('For LCModel fitting, please explicitly specify a .BASIS or .MAT file in the job file (opts.fit.basisSetFile = ''FILE'').');
end
Expand Down Expand Up @@ -599,4 +601,4 @@

end

end
end

0 comments on commit dd287a1

Please sign in to comment.