Skip to content

Commit

Permalink
[bug] fix detid value fangq#209
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyuyen committed Feb 24, 2024
1 parent 79fda9c commit 61ae0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmcx/pmcx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 61ae0b8

Please sign in to comment.