aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-01-20 15:14:44 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:43 +0100
commit2ad7bdc53c4219092ecfc4d4cb04a14fdb8e7506 (patch)
tree75051c9cc700c5235e8e936deb1767907427c479
parentfb190928c9bacc216728d66bda30c7b83692b00b (diff)
Get rid of estimate_resolution()
It wasn't implemented, anyway.
-rw-r--r--libcrystfel/src/peaks.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 0e874bb3..ca284e90 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -290,37 +290,6 @@ int integrate_peak(struct image *image, int cfs, int css,
}
-void estimate_resolution(RefList *list, UnitCell *cell,
- double *min, double *max)
-{
- Reflection *refl;
- RefListIterator *iter;
-
- *min = INFINITY;
- *max = 0.0;
-
- for ( refl = first_refl(list, &iter);
- refl != NULL;
- refl = next_refl(refl, iter) )
- {
- double one_over_d;
- signed int h, k, l;
-
- get_indices(refl, &h, &k, &l);
- one_over_d = 2.0 * resolution(cell, h, k, l);
-
- if ( one_over_d > *max ) *max = one_over_d;
- if ( one_over_d < *min ) *min = one_over_d;
-
- /* FIXME: Implement this */
-
- }
-
- *min = 0.0;
- *max = INFINITY;
-}
-
-
static void search_peaks_in_panel(struct image *image, float threshold,
float min_gradient, float min_snr,
struct panel *p)