aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/xds.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-19 16:07:24 +0200
committerThomas White <taw@physics.org>2014-09-19 16:23:39 +0200
commit6a6cb3b4d7f15c234a79ff8421a0ae5c1a1dcb2a (patch)
tree00f6e0da9a8d086af18b0b1f34433bc115c9f206 /libcrystfel/src/xds.c
parent2c959daa7a46b99a10dd5a1998b62ccb8def97de (diff)
Introduce CrystFEL unit cell files
Diffstat (limited to 'libcrystfel/src/xds.c')
-rw-r--r--libcrystfel/src/xds.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c
index c29083b5..4a8ef30e 100644
--- a/libcrystfel/src/xds.c
+++ b/libcrystfel/src/xds.c
@@ -629,9 +629,12 @@ IndexingPrivate *xds_prepare(IndexingMethod *indm, UnitCell *cell,
* but we'd have to decide whether the user just forgot the cell, or
* forgot "-nolatt", or whatever. */
if ( ((*indm & INDEXING_USE_LATTICE_TYPE)
- || (*indm & INDEXING_USE_CELL_PARAMETERS)) && (cell == NULL) ) {
- ERROR("No cell provided. If you wanted to use XDS without "
- "prior cell information, use xds-nolatt-nocell.\n");
+ || (*indm & INDEXING_USE_CELL_PARAMETERS))
+ && !cell_has_parameters(cell) )
+ {
+ ERROR("No cell parameters provided. If you wanted to use XDS "
+ "without prior cell information, use "
+ "xds-nolatt-nocell.\n");
return NULL;
}