aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/xds.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-10-29 18:03:07 +0100
committerThomas White <taw@physics.org>2013-10-29 18:03:44 +0100
commite6508cf8ffb1a686edfe2cda33a0580bb7bd78ec (patch)
tree15079a094a67878c069952873db3554598ca2c2f /libcrystfel/src/xds.c
parentd9b5f901b7a08514a9a0fe55f738994866430be7 (diff)
Change XDS default behaviour, and add warning about axis permutation
Diffstat (limited to 'libcrystfel/src/xds.c')
-rw-r--r--libcrystfel/src/xds.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c
index 83d2cab4..33bbe2da 100644
--- a/libcrystfel/src/xds.c
+++ b/libcrystfel/src/xds.c
@@ -677,6 +677,15 @@ IndexingPrivate *xds_prepare(IndexingMethod *indm, UnitCell *cell,
return NULL;
}
+ if ( ((*indm & INDEXING_USE_CELL_PARAMETERS)
+ || (*indm & INDEXING_USE_LATTICE_TYPE))
+ && !(*indm & INDEXING_CHECK_CELL_AXES)
+ && !(*indm & INDEXING_CHECK_CELL_COMBINATIONS) ) {
+ ERROR("The cell from xds-raw-cell or xds-raw-latt may have had"
+ " its axes permuted from the cell you provided. If this"
+ " is a problem, consider using xds-axes-cell.\n");
+ }
+
xp = calloc(1, sizeof(*xp));
if ( xp == NULL ) return NULL;