diff options
author | Thomas White <taw@physics.org> | 2021-01-15 15:27:50 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-01-15 15:28:30 +0100 |
commit | b3c159fc276c3c8032b05a010495d0a255f06dda (patch) | |
tree | b023bf21782cacd3242876ffd2094b0ed72bffc3 | |
parent | 4d82731cc32b4453f74b717585c6b2b3fac4aff8 (diff) |
Correct P to R centering
-rw-r--r-- | libcrystfel/src/index.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |