From 2c25695f9516beb5d27fd6a42696c4af1bec77b5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Sep 2017 13:17:10 +0200 Subject: Set --no-check-cell if cell is given, but has no parameters --- libcrystfel/src/index.c | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 3e50b664..ed791ff1 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -300,46 +300,51 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, } } - if ( cell == NULL ) { + /* No cell parameters -> no cell checking, no prior cell */ + if ( !cell_has_parameters(cell) ) { int warn = 0; if ( (flags & INDEXING_CHECK_CELL_COMBINATIONS) || (flags & INDEXING_CHECK_CELL_COMBINATIONS) ) { - ERROR("WARNING: Forcing --no-cell-combinations " - "and --no-check-cell because you didn't " - "provide a unit cell.\n"); + ERROR("WARNING: Forcing --no-check-cell because " + "reference unit cell parameters were not " + "given.\n"); flags &= ~INDEXING_CHECK_CELL_COMBINATIONS; flags &= ~INDEXING_CHECK_CELL_AXES; } for ( i=0; i no prior lattice type */ + if ( cell == NULL ) { + int warn = 0; + for ( i=0; i