Skip to content

Commit 54aa262

Browse files
committed
fix(python): use uint32 for orig_idx to match SpacePointIndex2
SpacePointIndex2 = std::uint32_t; using int64 caused an implicit sign/range coercion on every assignSpacePointIndices call.
1 parent 78d6158 commit 54aa262

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Examples/Scripts/Python/guntam_transformer_seeder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _apply_model_acceptance(
4343
"""
4444
r = np.asarray(sp.r)
4545
mask = (r < r_max) & (np.abs(xyz[:, 2]) < z_max)
46-
return xyz[mask].astype(np.float32), np.where(mask)[0].astype(np.int64)
46+
return xyz[mask].astype(np.float32), np.where(mask)[0].astype(np.uint32)
4747

4848

4949
def _filter_valid_seeds(

0 commit comments

Comments
 (0)