Skip to content

Commit

Permalink
less around the elbow...
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Jan 17, 2024
1 parent d9d2b6f commit 0d89a64
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/fastjet/_generalevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,10 @@ def _check_subtree_input(self, data):
return False

def extract_cons(self, array):
packed_flattened = ak.flatten(array)
px = packed_flattened.px.to_numpy()
py = packed_flattened.py.to_numpy()
pz = packed_flattened.pz.to_numpy()
E = packed_flattened.E.to_numpy()
px = ak.to_numpy(array.px.layout.content)
py = ak.to_numpy(array.py.layout.content)
pz = ak.to_numpy(array.pz.layout.content)
E = ak.to_numpy(array.E.layout.content)
off = np.asarray(array.layout.stops)
off = np.insert(off, 0, 0)
return px, py, pz, E, off
Expand Down

0 comments on commit 0d89a64

Please sign in to comment.