aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/mosflm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-26 14:18:53 +0100
committerThomas White <taw@physics.org>2014-11-26 14:18:53 +0100
commit9c4af5b5577d091f323bc3e6ace4b0652e05c9da (patch)
tree388d6f5185f5864137dff65495468678522071fd /libcrystfel/src/mosflm.c
parent1f7074c9bcb0f4fd3b56f9653511856bad58b7f1 (diff)
Read unique axis from unit cell (.cell) files
... and fix the MOSFLM logic again.
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r--libcrystfel/src/mosflm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index c28acd4a..dd865570 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -861,7 +861,10 @@ IndexingPrivate *mosflm_prepare(IndexingMethod *indm, UnitCell *cell,
if ( (*indm & INDEXING_USE_LATTICE_TYPE)
&& !((*indm & INDEXING_CHECK_CELL_COMBINATIONS)
|| (*indm & INDEXING_CHECK_CELL_AXES))
- && cell_has_parameters(cell) )
+ && (cell_has_parameters(cell)
+ || (cell_get_unique_axis(cell) == 'a')
+ || (cell_get_unique_axis(cell) == 'b')
+ || (cell_get_unique_axis(cell) == 'c')) )
{
ERROR("WARNING: The unit cell from %s might have had "
"its axes permuted from the unit cell you gave.\n"