aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-13 15:21:57 +0200
committerThomas White <taw@physics.org>2014-08-13 15:21:57 +0200
commit2e2eeec338757beaf0bdd770f6f2a95caa6708b4 (patch)
treefb4a639949e90389067632dfa3d07d07d06be673 /tests
parenta17341e438a983a076063e8483a65e17f92f41cb (diff)
Remove integrate_peak() from the API
Good riddance. One of my least favourite routines.
Diffstat (limited to 'tests')
-rw-r--r--tests/ring_check.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/ring_check.c b/tests/ring_check.c
index f7e8c473..2581f248 100644
--- a/tests/ring_check.c
+++ b/tests/ring_check.c
@@ -69,8 +69,7 @@ static void third_integration_check(struct image *image, int n_trials,
}
r = integrate_peak(image, 64, 64, &fsp, &ssp,
- &intensity, &sigma, 10.0, 15.0, 17.0,
- NULL, NULL);
+ &intensity, &sigma, 10.0, 15.0, 17.0, NULL);
if ( r == 0 ) {
mean_intensity += intensity;
@@ -131,8 +130,7 @@ static void fourth_integration_check(struct image *image, int n_trials,
}
r = integrate_peak(image, 64, 64, &fsp, &ssp,
- &intensity, &sigma, 10.0, 15.0, 17.0,
- NULL, NULL);
+ &intensity, &sigma, 10.0, 15.0, 17.0, NULL);
if ( r == 0 ) {
mean_intensity += intensity;
@@ -218,7 +216,7 @@ int main(int argc, char *argv[])
/* First check: no intensity -> no peak, or very low intensity */
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
- 10.0, 15.0, 17.0, NULL, NULL);
+ 10.0, 15.0, 17.0, NULL);
STATUS(" First check: integrate_peak() returned %i", r);
if ( r == 0 ) {
@@ -244,7 +242,7 @@ int main(int argc, char *argv[])
}
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
- 10.0, 15.0, 17.0, NULL, NULL);
+ 10.0, 15.0, 17.0, NULL);
if ( r ) {
ERROR(" Second check: integrate_peak() returned %i (wrong).\n",
r);
@@ -286,7 +284,7 @@ int main(int argc, char *argv[])
}
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
- 10.0, 15.0, 17.0, NULL, NULL);
+ 10.0, 15.0, 17.0, NULL);
if ( r ) {
ERROR(" Fifth check: integrate_peak() returned %i (wrong).\n",
r);