aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-09-26 21:59:16 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:00 +0100
commit8f43ca33d5edd9f75660174870e16afe8b9913bd (patch)
treebdf3c9f243475fd84fb9ce94c03239360c3a725a
parent744b510c21a38daaed6b3665645ca49e0de361bb (diff)
Describe and honour no_index
-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 ) {