From d6f855a933aa900f47be27649d42895393420761 Mon Sep 17 00:00:00 2001 From: Alexandra Tolstikova Date: Wed, 11 Feb 2015 17:11:21 +0100 Subject: Get cell volume range from tolerances --- libcrystfel/src/asdf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libcrystfel/src/asdf.c') diff --git a/libcrystfel/src/asdf.c b/libcrystfel/src/asdf.c index 0b890ef8..1d3d2c89 100644 --- a/libcrystfel/src/asdf.c +++ b/libcrystfel/src/asdf.c @@ -1011,8 +1011,10 @@ int run_asdf(struct image *image, IndexingPrivate *ipriv) if ( dp->indm & INDEXING_CHECK_CELL_AXES ) { double volume = cell_get_volume(dp->template); - volume_min = volume * 0.95; - volume_max = volume * 1.05; + double vtol = (dp->ltl[0] + dp->ltl[1] + dp->ltl[2]) / 100 + + dp->ltl[3] / 180 * M_PI; + volume_min = volume * (1 - vtol); + volume_max = volume * (1 + vtol); } int N_reflections = image_feature_count(image->features); @@ -1060,7 +1062,7 @@ int run_asdf(struct image *image, IndexingPrivate *ipriv) return 1; } - cell_free(uc); + cell_free(uc); } return 0; -- cgit v1.2.3