Skip to content

Commit

Permalink
Merge pull request #2352 from t20100/fix-detector-shape-type
Browse files Browse the repository at this point in the history
NexusDetector: Fixed type on shape
  • Loading branch information
kif authored Dec 7, 2024
2 parents 3825037 + e71ae93 commit 274f544
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 274f544

Please sign in to comment.