diff options
-rw-r--r-- | libcrystfel/src/index.c | 1 | ||||
-rw-r--r-- | libcrystfel/src/taketwo.c | 6 | ||||
-rw-r--r-- | libcrystfel/src/taketwo.h | 1 |
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); |