aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2017-03-13 11:37:38 +0100
committerValerio Mariani <valerio.mariani@desy.de>2017-03-13 11:37:38 +0100
commit984379c6c48a2325134b5f1edfff78934604e1ae (patch)
tree4b77eafa7128dc41f255adaa8bba2a5a2c7c382d /libcrystfel
parentd757002728ed36686de066aa997ae59817fa322c (diff)
Added management of max_num_peaks per image instead of per panel
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/peakfinder8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c
index 82a7e316..9ad0e4bd 100644
--- a/libcrystfel/src/peakfinder8.c
+++ b/libcrystfel/src/peakfinder8.c
@@ -1036,6 +1036,8 @@ int peakfinder8(struct image *img, int max_n_peaks,
peaks_to_add = max_n_peaks;
}
+ max_n_peaks -= peaks_to_add;
+
for ( pki=0 ; pki<peaks_to_add ; pki++ ) {
struct panel *p;