Skip to content

Commit

Permalink
Merge pull request #226 from European-XFEL/agipd-500k-inspect-M0
Browse files Browse the repository at this point in the history
Label AGIPD-500k with M0-M7 module numbers
  • Loading branch information
takluyver authored Jun 5, 2023
2 parents 446abe8 + 811fad0 commit 30e5c0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extra_geom/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,8 @@ def inspect(self, axis_units='px', frontview=True):

# Label modules and tiles
for ch, module in enumerate(self.modules):
quad, mod = (1 + v for v in divmod(ch, 4))
cx, cy, _ = module[4].centre() * scale
ax.text(cx, cy, f'Q{quad}M{mod}', fontweight='bold',
ax.text(cx, cy, f'M{ch}', fontweight='bold',
verticalalignment='center',
horizontalalignment='center')

Expand Down

0 comments on commit 30e5c0a

Please sign in to comment.