aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
authorOleksandr Yefanov <oleksandr.yefanov@desy.de>2018-09-20 13:42:42 +0200
committerThomas White <taw@physics.org>2018-09-20 13:42:42 +0200
commit3f5259506a83676df21a51e429ff8f431b2716dc (patch)
treede546fafd494f967e6c377fac4912246fab7be09 /src/geoptimiser.c
parent7419173e9cbe2b7108334af1c972b0231cfb0b44 (diff)
geoptimiser: add a missing check
Fixes occasional silly values for one panel
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index 9b03d1b9..f88a0dfa 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -916,7 +916,8 @@ static double compute_error(struct rg_collection *connected,
pix_index = ifs+p->w*iss;
if ( gp->num_pix_displ[pix_index]
- >= conn_data[di].num_peaks_per_pixel )
+ >= conn_data[di].num_peaks_per_pixel &&
+ gp->avg_displ_abs[pix_index] > -9999.0 )
{
double cer;