From 0ba6ac905f656be5fbdda0f681e618789c1e3a27 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Sep 2017 16:30:23 +0200 Subject: Don't send detector and tolerance to indexing methods The detector isn't used for anything, and the tolerance is none of their business. --- libcrystfel/src/index.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'libcrystfel/src/index.c') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index a9fff11a..9a0cb8cf 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -197,7 +197,6 @@ static char *friendly_indexer_name(IndexingMethod m) static void *prepare_method(IndexingMethod *m, UnitCell *cell, - struct detector *det, float *ltl, const char *options) { char *str; @@ -211,19 +210,19 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, break; case INDEXING_DIRAX : - priv = dirax_prepare(m, cell, det, ltl); + priv = dirax_prepare(m, cell); break; case INDEXING_ASDF : - priv = asdf_prepare(m, cell, det, ltl); + priv = asdf_prepare(m, cell); break; case INDEXING_MOSFLM : - priv = mosflm_prepare(m, cell, det, ltl); + priv = mosflm_prepare(m, cell); break; case INDEXING_XDS : - priv = xds_prepare(m, cell, det, ltl); + priv = xds_prepare(m, cell); break; case INDEXING_DEBUG : @@ -231,11 +230,11 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, break; case INDEXING_FELIX : - priv = felix_prepare(m, cell, det, ltl, options); + priv = felix_prepare(m, cell, options); break; case INDEXING_TAKETWO : - priv = taketwo_prepare(m, cell, det, ltl); + priv = taketwo_prepare(m, cell); break; default : @@ -360,7 +359,7 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, int j; ipriv->engine_private[i] = prepare_method(&methods[i], cell, - det, ltl, options); + options); if ( ipriv->engine_private[i] == NULL ) return NULL; -- cgit v1.2.3