Skip to content
Snippets Groups Projects
Commit 8ddf7b2b authored by Laura Nervo's avatar Laura Nervo
Browse files

gtCrystFindFamilies : using ~isrow() to check reflections format: it should be...

gtCrystFindFamilies : using ~isrow() to check reflections format: it should be one reflection each row, but not really confident that it works well

Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>
parent 096b152a
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ function list = gtCrystFindFamilies(hklsp, cryst)
% .hklfam
% each row one reflection
if size(hklsp,2) > size(hklsp,1)
if ~isrow(hklsp)
hklsp = hklsp';
end
......@@ -34,7 +34,7 @@ end
Bmat = gtCrystHKL2CartesianMatrix(cryst.latticepar);
symm = gtCrystGetSymmetryOperators(cryst.crystal_system, cryst.spacegroup);
[allshkls, allhklinds, mult] = gtCrystSignedHKLs(hklsp', symm);
[allshkls, allhklinds, mult] = gtCrystSignedHKLs(hklsp', symm); % column reflections
[hklind,ind,~] = unique(allhklinds,'stable');
hkl = allshkls(ind,:);
......
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