aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-19 13:16:14 +0200
committerThomas White <taw@physics.org>2017-10-19 14:16:30 +0200
commitf008c0a3356358348a871bfff633daf300c02c11 (patch)
treeba9a0f3864d8fc28aa92ed525c5676198b7b85e6
parent5e47163357008908d77258261bf411083a84820f (diff)
Add probe for TakeTwo
-rw-r--r--libcrystfel/src/index.c1
-rw-r--r--libcrystfel/src/taketwo.c6
-rw-r--r--libcrystfel/src/taketwo.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 89b8c334..cdc0e305 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -1021,6 +1021,7 @@ char *detect_indexing_methods(UnitCell *cell)
do_probe(dirax_probe, cell, methods);
do_probe(asdf_probe, cell, methods);
do_probe(xds_probe, cell, methods);
+ do_probe(taketwo_probe, cell, methods);
/* Don't automatically use Felix (yet) */
//do_probe(felix_probe, cell, methods);
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index 757c6c52..0857f813 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -1642,3 +1642,9 @@ void taketwo_cleanup(IndexingPrivate *pp)
free(tp);
}
+
+const char *taketwo_probe(UnitCell *cell)
+{
+ if ( cell_has_parameters(cell) ) return "taketwo";
+ return NULL;
+}
diff --git a/libcrystfel/src/taketwo.h b/libcrystfel/src/taketwo.h
index e82dda68..fcd7aebc 100644
--- a/libcrystfel/src/taketwo.h
+++ b/libcrystfel/src/taketwo.h
@@ -44,6 +44,7 @@ struct taketwo_options
extern void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell);
+extern const char *taketwo_probe(UnitCell *cell);
extern int taketwo_index(struct image *image,
const struct taketwo_options *opts, void *priv);
extern void taketwo_cleanup(IndexingPrivate *pp);