Skip to content

Commit 931c925

Browse files
committed
Corrected casting for bunch id
1 parent c8a30e2 commit 931c925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

communication_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def buffer_2_beam(buf):
100100
gamma = buf[i_buf]
101101
i_buf += 1
102102

103-
id_ = np.int_(buf[i_buf:i_buf+macroparticlenumber])
103+
id_ = buf[i_buf:i_buf+macroparticlenumber].astype(np.int32)
104104
i_buf += macroparticlenumber
105105

106106
x = buf[i_buf:i_buf+macroparticlenumber]

0 commit comments

Comments
 (0)