From 7836e89222bf587639adc1ad06dfd6d216d25379 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 29 Aug 2019 14:03:43 +0200 Subject: indexamajig: Remove --no-cell-combinations Also remove all the related API stuff. We now have a much better way of checking indexing results. --- libcrystfel/src/index.c | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'libcrystfel/src/index.c') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 45b24afb..cb6b979b 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -101,19 +101,9 @@ static void set_last_task(char *lt, const char *task) static void show_indexing_flags(IndexingFlags flags) { - char check[64]; - - assert( !((flags & INDEXING_CHECK_CELL_COMBINATIONS) - && (flags & INDEXING_CHECK_CELL_AXES)) ); STATUS("Indexing parameters:\n"); - strcpy(check, onoff(flags & (INDEXING_CHECK_CELL_COMBINATIONS | INDEXING_CHECK_CELL_AXES))); - if ( flags & INDEXING_CHECK_CELL_AXES ) { - strcat(check, " (axis permutations only)"); - } - if ( flags & INDEXING_CHECK_CELL_COMBINATIONS ) { - strcat(check, " (axis combinations)"); - } - STATUS(" Check unit cell parameters: %s\n", check); + STATUS(" Check unit cell parameters: %s\n", + onoff(flags & INDEXING_CHECK_CELL)); STATUS(" Check peak alignment: %s\n", onoff(flags & INDEXING_CHECK_PEAKS)); STATUS(" Refine indexing solutions: %s\n", @@ -361,14 +351,11 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, int warn = 0; - if ( (flags & INDEXING_CHECK_CELL_COMBINATIONS) - || (flags & INDEXING_CHECK_CELL_AXES) ) - { + if ( flags & INDEXING_CHECK_CELL ) { 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; + flags &= ~INDEXING_CHECK_CELL; } for ( i=0; iflags & INDEXING_CHECK_CELL_COMBINATIONS) - && (ipriv->flags & INDEXING_CHECK_CELL_AXES)) ); - /* Pre-refinement unit cell check if requested */ if ( check_cell(ipriv->flags, cr, ipriv->target_cell, ipriv->tolerance) ) -- cgit v1.2.3