From e71ae9388229698294382690793495f40ab9b3e1 Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Fri, 6 Dec 2024 16:34:53 +0100 Subject: [PATCH] Cast to int --- src/pyFAI/detectors/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyFAI/detectors/_common.py b/src/pyFAI/detectors/_common.py index 51cb9ef49..f6306ca66 100644 --- a/src/pyFAI/detectors/_common.py +++ b/src/pyFAI/detectors/_common.py @@ -1293,7 +1293,7 @@ def load(self, filename, orientation=0): self._delta_dummy = det_grp["delta_dummy"][()] for what in ("max_shape", "shape"): if what in det_grp: - self.__setattr__(what, tuple(i for i in det_grp[what][()])) + self.__setattr__(what, tuple(int(i) for i in det_grp[what][()])) if "mask" in det_grp: self.mask = det_grp["mask"][()] if "pixel_corners" in det_grp: