aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-13 15:52:01 +0100
committerThomas White <taw@physics.org>2020-03-13 15:54:05 +0100
commit0f18ff76a3d1f5979db9234c68662c86238706b5 (patch)
tree4540842abd0ddde91fc23d8956b74e393f43c993 /libcrystfel/src/cell-utils.c
parentd4873dff09b3cf314fce0019d76e3a4ca64d7221 (diff)
uncenter_cell(): Convert R to P
Otherwise, the cell comparison doesn't recognise the cells as the same, breaking indexing with an R reference cell. Unfortunately, the resulting cell after comparison by compare_r_c_p still comes out as P, but that doesn't seem like a big loss. To get it strictly correct, we'd need some way of tracking through the information that the cell got "uncentered" from R to P, even though the matrix is an identity.
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r--libcrystfel/src/cell-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index 78488d1b..e9e7aaec 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -406,7 +406,7 @@ static IntegerMatrix *centering_transformation(UnitCell *in,
* should go the opposite way to what's written in the first column. */
if ( (cen=='P') || (cen=='R') ) {
- *new_centering = cen;
+ *new_centering = 'P';
*new_latt = lt;
*new_ua = ua;
C = intmat_identity(3);