aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-07-06 17:06:52 +0200
committerThomas White <taw@physics.org>2017-07-06 17:25:40 +0200
commit5bf72b123cb582f63652e32420d4fbe748cbb8d2 (patch)
treee70678eb192cf6169757d7a80235fb429d92303a /libcrystfel/src/index.c
parent92d00d19d5b4a6b72a35183bea6a83a4062e5eca (diff)
indexamajig: Add TakeTwo-specific options
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index bdabb062..b00f13aa 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -64,6 +64,8 @@ struct _indexingprivate
UnitCell *target_cell;
float tolerance[4];
+ struct taketwo_options *ttopts;
+
int n_methods;
IndexingMethod *methods;
void **engine_private;
@@ -157,7 +159,8 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell,
IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell,
struct detector *det, float *ltl,
- int no_refine, const char *options)
+ int no_refine, const char *options,
+ struct taketwo_options *ttopts)
{
int i, n;
char **method_strings;
@@ -216,6 +219,8 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell,
}
for ( i=0; i<4; i++ ) ipriv->tolerance[i] = ltl[i];
+ ipriv->ttopts = ttopts;
+
return ipriv;
}
@@ -339,7 +344,7 @@ static int try_indexer(struct image *image, IndexingMethod indm,
break;
case INDEXING_TAKETWO :
- r = taketwo_index(image, mpriv);
+ r = taketwo_index(image, ipriv->ttopts, mpriv);
break;
default :