Skip to content
Snippets Groups Projects
Commit c2ec878a authored by Peter Reischig's avatar Peter Reischig Committed by Nicola Vigano
Browse files

Minor bug fix and addition to gtINDEXCreateInputData.

parent a1e2fb6e
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,10 @@ for ii = 1:nof_refs
% Find hkl families that are close
tot.hklind{ii} = find(abs(tot.theta(ii) - cryst.theta) <= toltheta);
if isempty(tot.hklind{ii})
error('No {hkl} family found for pair #%d',tot.pairid(ii))
end
if length(tot.hklind{ii})==1
tot.hkl(ii,:) = cryst.hkl(:,tot.hklind{ii});
......@@ -246,6 +250,7 @@ tot.Rline = Rline;
tot.Rhklind = Rhklind;
tot.Rshklind = Rshklind;
tot.indexed = false(size(tot.pairid));
%%%%%%%%%%%%%%%%%%%%%%%%
%% Save data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment