From 94df5f31d5a91b22991e26cd02bc37763005f2d1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Mar 2020 11:47:41 +0100 Subject: ImageFeatureList: Store panel number, not pointer This makes the conversion to DataTemplate/detgeom MUCH easier. --- tests/ring_check.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/ring_check.c b/tests/ring_check.c index e0667e37..f286d5e7 100644 --- a/tests/ring_check.c +++ b/tests/ring_check.c @@ -67,7 +67,7 @@ static void third_integration_check(struct image *image, int n_trials, } } - r = integrate_peak(image, 64, 64, &image->det->panels[0], + r = integrate_peak(image, 64, 64, 0, &fsp, &ssp, &intensity, &sigma, 10.0, 15.0, 17.0, NULL); @@ -129,7 +129,7 @@ static void fourth_integration_check(struct image *image, int n_trials, } } - r = integrate_peak(image, 64, 64, &image->det->panels[0], + r = integrate_peak(image, 64, 64, 0, &fsp, &ssp, &intensity, &sigma, 10.0, 15.0, 17.0, NULL); @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) image.crystals = NULL; /* First check: no intensity -> no peak, or very low intensity */ - r = integrate_peak(&image, 64, 64, &image.det->panels[0], + r = integrate_peak(&image, 64, 64, 0, &fsp, &ssp, &intensity, &sigma, 10.0, 15.0, 17.0, NULL); STATUS(" First check: integrate_peak() returned %i", r); @@ -246,7 +246,7 @@ int main(int argc, char *argv[]) } } - r = integrate_peak(&image, 64, 64, &image.det->panels[0], + r = integrate_peak(&image, 64, 64, 0, &fsp, &ssp, &intensity, &sigma, 10.0, 15.0, 17.0, NULL); if ( r ) { @@ -289,7 +289,7 @@ int main(int argc, char *argv[]) } } - r = integrate_peak(&image, 64, 64, &image.det->panels[0], + r = integrate_peak(&image, 64, 64, 0, &fsp, &ssp, &intensity, &sigma, 10.0, 15.0, 17.0, NULL); if ( r ) { -- cgit v1.2.3