aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/geometry.txt4
-rw-r--r--src/peaks.c8
2 files changed, 7 insertions, 5 deletions
diff --git a/doc/geometry.txt b/doc/geometry.txt
index d4fcdb79..22e4ae3f 100644
--- a/doc/geometry.txt
+++ b/doc/geometry.txt
@@ -48,5 +48,9 @@ n_panels = 1
; problems due to streaks appearing along the readout direction.
0/badrow_direction = y
+; If "no_index" is "true", then peaks in this panel will not be used for
+; indexing nor integrated and recorded in the stream.
+0/no_index = false
+
See the "examples" folder for some examples.
diff --git a/src/peaks.c b/src/peaks.c
index 47e02c42..16a5f2a2 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -203,12 +203,10 @@ int integrate_peak(struct image *image, int xp, int yp,
val = image->data[(x+xp)+image->width*(y+yp)];
- if ( do_sa || do_polar ) {
+ p = find_panel(image->det, x+xp, y+yp);
+ if ( p == NULL ) return 1;
- p = find_panel(image->det, x+xp, y+yp);
- if ( p == NULL ) return 1;
-
- }
+ if ( p->no_index ) return 1;
if ( do_sa ) {