From 61ae0b869b5f63d173d69abbca0ddf52279c336f Mon Sep 17 00:00:00 2001 From: Ivy Yen Date: Fri, 23 Feb 2024 22:11:48 -0500 Subject: [PATCH] [bug] fix detid value #209 --- pmcx/pmcx/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmcx/pmcx/utils.py b/pmcx/pmcx/utils.py index 318770ce..e6908f88 100644 --- a/pmcx/pmcx/utils.py +++ b/pmcx/pmcx/utils.py @@ -373,7 +373,7 @@ def detphoton(detp, medianum, savedetflag, issaveref=None, srcnum=None): if np.any(newdetp["detid"] > 65535): newdetp["srcid"] = np.right_shift(newdetp["detid"], 16, dtype=np.int32) newdetp["detid"] = np.bitwise_and( - newdetp["detid"], 0xFF, dtype=np.int32 + newdetp["detid"], 0xFFFF, dtype=np.int32 ) c0 = 1