Skip to content

Commit

Permalink
Merge pull request #1757 from HEXRD/pinhole-mask-fix
Browse files Browse the repository at this point in the history
factor of 2 missing.
  • Loading branch information
saransh13 authored Nov 11, 2024
2 parents cadbada + 1f50974 commit c098ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrdgui/pinhole_panel_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c098ffe

Please sign in to comment.