diff options
Diffstat (limited to 'libcrystfel/src/taketwo.c')
-rw-r--r-- | libcrystfel/src/taketwo.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index 893791e4..63840d2b 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -159,6 +159,7 @@ struct Seed struct taketwo_private { IndexingMethod indm; + struct taketwo_options *opts; UnitCell *cell; int serial_num; /**< Serial of last image, -1 if unassigned */ unsigned int xtal_num; /**< last number of crystals recorded */ @@ -2121,8 +2122,7 @@ static void partial_taketwo_cleanup(struct taketwo_private *tp) /* CrystFEL interface hooks */ -int taketwo_index(struct image *image, const struct taketwo_options *opts, - void *priv) +int taketwo_index(struct image *image, void *priv) { Crystal *cr; UnitCell *cell; @@ -2172,7 +2172,7 @@ int taketwo_index(struct image *image, const struct taketwo_options *opts, rlps[n_rlps].v = 0.0; rlps[n_rlps++].w = 0.0; - cell = run_taketwo(tp->cell, opts, rlps, n_rlps, tp); + cell = run_taketwo(tp->cell, tp->opts, rlps, n_rlps, tp); free(rlps); if ( cell == NULL ) return 0; @@ -2190,7 +2190,8 @@ int taketwo_index(struct image *image, const struct taketwo_options *opts, } -void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell) +void *taketwo_prepare(IndexingMethod *indm, struct taketwo_options *opts, + UnitCell *cell) { struct taketwo_private *tp; |