aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-10-22 15:26:10 +0200
committerThomas White <taw@physics.org>2019-10-22 15:26:10 +0200
commit049c3eb48c31dfa006dd78e2612babf6d6b3b6db (patch)
tree59c2754f0c11b78b84277f38805ba1a4df55fb71
parent368030b0020b0d73a67ffef10e87e40818a3ccbe (diff)
xds: Fix handedness of unit cell
Previously, it was wired to give left handed cells.
-rw-r--r--libcrystfel/src/xds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c
index c0fccc7b..cae7ce71 100644
--- a/libcrystfel/src/xds.c
+++ b/libcrystfel/src/xds.c
@@ -173,9 +173,9 @@ static int read_cell(struct image *image)
cell = cell_new();
cell_set_cartesian(cell,
- ax*1e-10, ay*1e-10, az*1e-10,
- bx*1e-10, by*1e-10, bz*1e-10,
- -cx*1e-10, -cy*1e-10, -cz*1e-10);
+ -ax*1e-10, -ay*1e-10, -az*1e-10,
+ -bx*1e-10, -by*1e-10, -bz*1e-10,
+ cx*1e-10, cy*1e-10, cz*1e-10);
if ( convert_spacegroup_number(spg, &latticetype, &centering, &ua) ) {
ERROR("Failed to convert XDS space group number (%i)\n", spg);
return 0;