aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-02 14:56:53 +0200
committerThomas White <taw@physics.org>2019-09-12 16:35:52 +0200
commit6e713e3a78167d421acd7b511d07675ca0032d5a (patch)
tree5e68406e80a487ff120ee2f7a7de42968d258ec1
parenta249da0dae1ab6fa5d708f3ba4fa412c7c715ce1 (diff)
Add indexing_methods() to examine the actual list of methods
-rw-r--r--libcrystfel/src/index.c6
-rw-r--r--libcrystfel/src/index.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index cc9f0248..05d669a1 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -461,6 +461,12 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell,
}
+const IndexingMethod *indexing_methods(IndexingPrivate *p, int *n)
+{
+ return p->methods;
+}
+
+
void cleanup_indexing(IndexingPrivate *ipriv)
{
int n;
diff --git a/libcrystfel/src/index.h b/libcrystfel/src/index.h
index 883df4a3..4fc95b1d 100644
--- a/libcrystfel/src/index.h
+++ b/libcrystfel/src/index.h
@@ -161,6 +161,8 @@ extern IndexingPrivate *setup_indexing(const char *methods, UnitCell *cell,
struct pinkIndexer_options *pinkIndexer_opts,
struct felix_options *felix_opts);
+extern const IndexingMethod *indexing_methods(IndexingPrivate *p, int *n);
+
extern char *detect_indexing_methods(UnitCell *cell);
extern void index_pattern(struct image *image, IndexingPrivate *ipriv);