Add n_collision field to Python SourceSite binding

The ctypes _SourceSite struct must match the C++ SourceSite layout.
The missing field caused test_source_bank to abort.
This commit is contained in:
Eden Rochman 2026-06-04 16:03:06 +02:00
parent 2199229b15
commit 36f98e9b22

View file

@ -34,7 +34,8 @@ class _SourceSite(Structure):
('progeny_id', c_int64),
('wgt_born', c_double),
('wgt_ww_born', c_double),
('n_split', c_int64)]
('n_split', c_int64),
('n_collision', c_int)]
# Define input type for numpy arrays that will be passed into C++ functions
# Must be an int or double array, with single dimension that is contiguous