From e32eb7ab31fbc5f553c301208e7cdd12ad2bd08a Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Tue, 24 Jan 2023 10:05:06 +0100 Subject: [PATCH] fixup! Add a method to get the detector centre with sub-pixel accuracy --- extra_geom/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra_geom/base.py b/extra_geom/base.py index 2612627..e2e8f13 100644 --- a/extra_geom/base.py +++ b/extra_geom/base.py @@ -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):