From b3c159fc276c3c8032b05a010495d0a255f06dda Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 15 Jan 2021 15:27:50 +0100 Subject: Correct P to R centering --- libcrystfel/src/index.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 44909347..14b77513 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -599,6 +599,12 @@ static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target, cell_set_lattice_type(out, cell_get_lattice_type(target)); cell_set_unique_axis(out, cell_get_unique_axis(target)); + /* Correct P to R centering, for the same reason */ + if ( (cell_get_centering(target) == 'R') + && (cell_get_centering(out) == 'P') ) { + cell_set_centering(out, 'R'); + } + return 0; } -- cgit v1.2.3