diff options
author | Thomas White <taw@physics.org> | 2010-11-12 17:07:38 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:05 +0100 |
commit | 49004f0cc3a573e8a866e0e999c138732683b99f (patch) | |
tree | b0947fcb44b07f3bd5c181c899b4fae0b9cec8df /src/peaks.c | |
parent | e0b3bc1c52fcb530fa16dc979d75699a5304cea7 (diff) |
Don't cull peaks if badrow direction is not specified
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/peaks.c b/src/peaks.c index e70ebfe2..e7ec9c9e 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -33,7 +33,7 @@ /* Maximum number of peaks which may be predicted by find_projected_peaks() */ -#define MAX_CPEAKS (1024) +#define MAX_CPEAKS (2048) /* How close a peak must be to an indexed position to be considered "close" * for the purposes of double hit detection and sanity checking. */ @@ -174,7 +174,9 @@ static int cull_peaks(struct image *image) for ( i=0; i<image->det->n_panels; i++ ) { p = &image->det->panels[i]; - nelim += cull_peaks_in_panel(image, p); + if ( p->badrow != '0' ) { + nelim += cull_peaks_in_panel(image, p); + } } return nelim; |