Skip to content

Commit

Permalink
Remove repetition and reorder the items
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Feb 27, 2025
1 parent 031e18d commit ab03857
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dxtbx/format/FormatNXmxEigerFilewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ def _get_nxmx(self, fh: h5py.File):
# is the number of pixels along the slow axis first, then the fast axis. Here
# swap any that look like they are (fast, slow) instead.
swapped_dims = {
(4148, 4362),
(3108, 3262),
(4148, 4362),
(3108, 3262),
(2068, 2162),
(1028, 1062),
(1028, 512),
(4148, 512),
(2068, 512),
(1028, 512),
}
for module in nxdetector.modules:
if (tuple(module.data_size)) in swapped_dims:
Expand Down

0 comments on commit ab03857

Please sign in to comment.