From f008c0a3356358348a871bfff633daf300c02c11 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 19 Oct 2017 13:16:14 +0200 Subject: Add probe for TakeTwo --- libcrystfel/src/index.c | 1 + libcrystfel/src/taketwo.c | 6 ++++++ libcrystfel/src/taketwo.h | 1 + 3 files changed, 8 insertions(+) (limited to 'libcrystfel/src') 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); -- cgit v1.2.3