aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-09 10:18:48 -0800
committerThomas White <taw@physics.org>2013-02-09 11:31:26 -0800
commit8907b7cb333a893720cac1def3d86dbe26600fa8 (patch)
tree50329c42ab96d3b91a1661ad4b62549d06708ab0 /libcrystfel/src/index.c
parentafafa4ca344de75f27771d8191e79c6280b68694 (diff)
Clarify lattice type information
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;