Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Return a single-axis goniometer
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Dec 7, 2023
1 parent fa7b8c8 commit cf8b864
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dxtbx/format/FormatBrukerED1.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@ def _goniometer(self):
omega -= 180
angles = flex.double((phi, chi, omega))

# The ED-1 has a single axis goniometer, but go through the multi-axis
# goniometer model to compose the axis
# The ED-1 has a single-axis goniometer, but go through the multi-axis
# goniometer model to compose the axis.
g = self._goniometer_factory.make_multi_axis_goniometer(
axes, angles, names, scan_axis
)

return g
# It is preferable to return a single axis goniometer, as this can be
# further optimised by dials.find_rotation_axis
return self._goniometer_factory.known_axis(g.get_rotation_axis())

def _calculate_gain(self, wavelength):
Expand Down

0 comments on commit cf8b864

Please sign in to comment.