aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 3c383855..d0183371 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -229,7 +229,9 @@ int integrate_peak(struct image *image, int cfs, int css,
if ( do_polar ) {
- tt = get_tt(image, fs+cfs, ss+css);
+ int err;
+
+ tt = get_tt(image, fs+cfs, ss+css, &err);
phi = atan2(ss+css, fs+cfs);
pa = pow(sin(phi)*sin(tt), 2.0);