Skip to content

Commit

Permalink
fixup! Add a method to get the detector centre with sub-pixel accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jan 24, 2023
1 parent 4e0c69e commit e32eb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra_geom/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def centre(self, snapped=False):

tile_corners = [t.corner_pos[:2] for t in
chain.from_iterable(self.modules)]
return np.abs(np.min(tile_corners, axis=0))[::-1] / self.pixel_size
return -np.min(tile_corners, axis=0)[::-1] / self.pixel_size

@staticmethod
def split_tiles(module_data):
Expand Down

0 comments on commit e32eb7a

Please sign in to comment.