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

Fix MadMiner particle initialization #471

Merged
merged 3 commits into from
Jul 28, 2021
Merged

Conversation

Sinclert
Copy link
Member

This PR addresses issue #470, which describes an exception being raised when the MadMinerParticle class is being initialized within several interface modules (delphes_root.py, lhe.py...).

The bug was initially introduced on the scikit-hep -> vector migration PR, as the scikit-hep based class from which MadMinerParticle inherited from (LorentzVector) defined default argument values, but the vector based one (VectorObject4D) does not.

When using the latter, we must replaced the usual initialization by one of the class-method helpers.

@Sinclert Sinclert added the bug Something isn't working label Jul 28, 2021
@Sinclert Sinclert self-assigned this Jul 28, 2021
@Sinclert Sinclert merged commit 83124e3 into master Jul 28, 2021
@Sinclert Sinclert deleted the fix-particle-initialization branch July 28, 2021 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant