From 1f50974e4900fbe582de2d70275778f4ae86aa9c Mon Sep 17 00:00:00 2001 From: Saransh Singh Date: Mon, 11 Nov 2024 12:04:07 -0800 Subject: [PATCH] factor of 2 missing. --- hexrdgui/pinhole_panel_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrdgui/pinhole_panel_buffer.py b/hexrdgui/pinhole_panel_buffer.py index 7bf7c6f9a..7c3575bfd 100644 --- a/hexrdgui/pinhole_panel_buffer.py +++ b/hexrdgui/pinhole_panel_buffer.py @@ -14,7 +14,7 @@ def generate_pinhole_panel_buffer(instr): try: for det_key, det in instr.detectors.items(): crit_angle = np.arctan( - physics_package.pinhole_radius / + 2.0 * physics_package.pinhole_radius / physics_package.pinhole_thickness) ptth, peta = det.pixel_angles() ph_buffer[det_key] = ptth < crit_angle