aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-09-13 14:04:40 +0200
committerThomas White <taw@physics.org>2013-09-13 14:04:40 +0200
commit5231a0f07fd5f72b88e2d9feb774de747f04536b (patch)
tree6232d4245acdcd589a83ca278b21c78f8d37f098 /libcrystfel/src/index.c
parent73f6c63d1f14f2652bd50bf8a1e2dd5debbaaf3f (diff)
Add INDEXING_SIMULATION for streams made by partial_sim
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 8307778d..951018e4 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -366,6 +366,10 @@ char *indexer_str(IndexingMethod indm)
strcpy(str, "xds");
break;
+ case INDEXING_SIMULATION :
+ strcpy(str, "simulation");
+ break;
+
default :
ERROR("Unrecognised indexing method %i\n",
indm & INDEXING_METHOD_MASK);
@@ -374,6 +378,8 @@ char *indexer_str(IndexingMethod indm)
}
+ if ( (indm & INDEXING_METHOD_MASK) == INDEXING_SIMULATION ) return str;
+
if ( indm & INDEXING_CHECK_CELL_COMBINATIONS ) {
strcat(str, "-comb");
} else if ( indm & INDEXING_CHECK_CELL_AXES ) {