Skip to content

Commit

Permalink
updated README example using from_event classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
jacanchaplais authored Jan 9, 2023
2 parents 3b8c569 + 090f1c7 commit 5c295d4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,7 @@ with `showerpipe`.
... lhe_path = "https://zenodo.org/record/6034610/files/unweighted_events.lhe.gz"
... gen = PythiaGenerator("pythia-settings.cmnd", lhe_path)
>>> for event in gen:
... graph = gcl.Graphicle.from_numpy(
... pmu=event.pmu,
... pdg=event.pdg,
... color=event.color,
... helicity=event.helicity,
... status=event.status,
... final=event.final,
... edges=event.edges
... )
... graph = gcl.Graphicle.from_event(event)
... break

>>> graph.pdg
Expand Down

0 comments on commit 5c295d4

Please sign in to comment.