Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interaction_id bug for "older" larcv files #179

Open
yeonjaej opened this issue Apr 16, 2024 · 0 comments
Open

interaction_id bug for "older" larcv files #179

yeonjaej opened this issue Apr 16, 2024 · 0 comments

Comments

@yeonjaej
Copy link

v4 file (/sdf/data/neutrino/generic/mpvmpr_2020_01_v04/train.root) interaction_id is not filled properly with below lines.
(np.unique returns [-1, 65535])
When the lines are commented out, the interaction_id seems sensible.

inter_ids = np.array([p.interaction_id() for p in particles], dtype=np.int32)
if np.any(inter_ids != INVAL_ID):
inter_ids[~valid_mask] = -1
return inter_ids

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant