aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 29a24234..94af656f 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -426,9 +426,9 @@ struct panel *find_panel(struct detector *det, double fs, double ss)
for ( p=0; p<det->n_panels; p++ ) {
if ( (fs >= det->panels[p].min_fs)
- && (fs <= det->panels[p].max_fs+1)
+ && (fs < det->panels[p].max_fs+1)
&& (ss >= det->panels[p].min_ss)
- && (ss <= det->panels[p].max_ss+1) ) {
+ && (ss < det->panels[p].max_ss+1) ) {
return &det->panels[p];
}
}