aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 1c3441a6..949be146 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -206,7 +206,8 @@ void index_pattern(struct image *image,
/* Set the default indexer flags. May need tweaking depending on the method */
static IndexingMethod defaults(IndexingMethod a)
{
- return a | INDEXING_CHECK_CELL_COMBINATIONS | INDEXING_CHECK_PEAKS;
+ return a | INDEXING_CHECK_CELL_COMBINATIONS | INDEXING_CHECK_PEAKS
+ | INDEXING_USE_LATTICE_TYPE;
}
@@ -235,6 +236,13 @@ static IndexingMethod set_axes(IndexingMethod a)
}
+/* Set the indexer flags for "use no lattice type information" */
+static IndexingMethod set_nolattice(IndexingMethod a)
+{
+ return a & ~INDEXING_USE_LATTICE_TYPE;
+}
+
+
IndexingMethod *build_indexer_list(const char *str)
{
int n, i;
@@ -271,6 +279,9 @@ IndexingMethod *build_indexer_list(const char *str)
} else if ( strcmp(methods[i], "axes") == 0) {
list[nmeth] = set_axes(list[nmeth]);
+ } else if ( strcmp(methods[i], "nolatt") == 0) {
+ list[nmeth] = set_nolattice(list[nmeth]);
+
} else {
ERROR("Bad list of indexing methods: '%s'\n", str);
return NULL;