scikit-hep / pyhepmc

Easy-to-use Python bindings for HepMC3
https://scikit-hep.org/pyhepmc/
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

Associated particle #39

Closed HDembinski closed 2 years ago

HDembinski commented 2 years ago

Allow assigning particles to attributes (via AssociatedParticle, but the Python code nevers sees this class).

Upon deserialization, unparsed attributes are now represented with the type UnparsedAttribute. Users can convert it to a real attribute with the astype method.