Skip to content

Commit

Permalink
Correct bug in gain determination
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Dec 7, 2023
1 parent cf8b864 commit 6e6f55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dxtbx/format/FormatBrukerED1.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _calculate_gain(self, wavelength):
gain = e_photon / e_ADU
if gain == 1.0 / 3.0:
gain = 3.0
return
return gain

def _detector(self):
# goniometer angles in ANGLES are 2-theta, omega, phi, chi (FIXED)
Expand Down Expand Up @@ -148,13 +148,13 @@ def _detector(self):
pixel_size,
image_size,
(min_trusted_value, full_scale),
gain=gain,
)

# Here we set specifics, notably parallax correction and
# QE correction are effectively disabled by setting the simple
# pixel-to-millimetre strategy and a very high mu value.
for panel in detector:
panel.set_gain(gain)
panel.set_thickness(0.450)
panel.set_material("Si")
panel.set_px_mm_strategy(SimplePxMmStrategy())
Expand Down

0 comments on commit 6e6f55a

Please sign in to comment.