aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-10-28 14:36:17 +0100
committerThomas White <taw@physics.org>2024-10-28 14:38:47 +0100
commita989c47b836355bec9a1fb313d163a4ba07bb346 (patch)
tree598bc335c6042d8fb99f862617528ca5da0ee4d3 /libcrystfel
parent9586ebfcad45c64bb5baa03f97b8b406071c52f2 (diff)
all_panels_perpendicular_to_beam: Fix units problem
fsz and ssz are in units of pixels (of clen) per pixel (of pixel index). Therefore, the difference calculation result is in pixels. The limit is 10 pixels (of whatever panel). The old version was therefore far too conservative with what constitutes "flat"
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/datatemplate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c
index c97bd6d7..a921fe37 100644
--- a/libcrystfel/src/datatemplate.c
+++ b/libcrystfel/src/datatemplate.c
@@ -1890,7 +1890,7 @@ static int all_panels_perpendicular_to_beam(const DataTemplate *dtempl)
double z_diff;
struct panel_template *p = &dtempl->panels[i];
z_diff = p->fsz*PANEL_WIDTH(p) + p->ssz*PANEL_HEIGHT(p);
- if ( z_diff > 10.0*p->pixel_pitch ) return 0;
+ if ( z_diff > 10.0 ) return 0;
}
return 1;
}