aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-09-15 14:28:10 +0200
committerThomas White <taw@physics.org>2017-09-15 14:33:14 +0200
commit0101b82caa3517be533a31f5b6bf5636c25a94da (patch)
treea753d80f506c9c46f5cef95d193d7bf3b9166741 /libcrystfel
parent318a10ca2aded24327456d0fb302be61f870ec02 (diff)
Better way of displaying cell check option
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/index.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index d8810716..258c4bc1 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -82,10 +82,18 @@ static const char *onoff(int a)
static void show_indexing_flags(IndexingFlags flags)
{
- STATUS(" Check unit cell (combinations): %s\n",
- onoff(flags & INDEXING_CHECK_CELL_COMBINATIONS));
- STATUS(" Check unit cell (axis permutations only): %s\n",
- onoff(flags & INDEXING_CHECK_CELL_AXES));
+ char check[64];
+
+ assert( !((flags & INDEXING_CHECK_CELL_COMBINATIONS)
+ && (flags & INDEXING_CHECK_CELL_AXES)) );
+ 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 peak alignment: %s\n",
onoff(flags & INDEXING_CHECK_PEAKS));
STATUS(" Refine indexing solutions: %s\n",