Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Jul 28, 2023
1 parent 471c394 commit 5f4b492
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/dxtbx/format/FormatCBFMiniEigerChessID7B2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
An implementation of the FormatCBFMiniEiger image reader for the Eiger2 16M
detector at the CHESS ID7B2 beamline, which has an inverted goniometer axis.
"""

from __future__ import annotations

import sys
Expand All @@ -21,16 +16,12 @@ def understand(image_file):

header = FormatCBFMiniEiger.get_cbf_header(image_file)
for record in header.split("\n"):
if "Detector: Dectris EIGER2 Si 16M, S/N E-32-0123" in record:
if "# Detector: Dectris EIGER2 Si 16M, S/N E-32-0123" in record:
return True

return False

def _goniometer(self):
"""Return a model for a simple single-axis goniometer. This should
probably be checked against the image header, though for miniCBF
there are limited options for this."""

return self._goniometer_factory.known_axis((-1, 0, 0))


Expand Down

0 comments on commit 5f4b492

Please sign in to comment.