Skip to content

Commit

Permalink
Cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Dec 6, 2024
1 parent 3825037 commit e71ae93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyFAI/detectors/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e71ae93

Please sign in to comment.