Skip to content
Snippets Groups Projects
Commit 000d7354 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Simplify code

parent 976019b8
No related branches found
No related tags found
1 merge request!47Resolve "uproot4 integration"
Pipeline #16278 failed
......@@ -276,7 +276,7 @@ def best_track(tracks, startend=None, minmax=None, stages=None):
tracks = tracks[m1]
rec_stage_lengths = ak.num(tracks.rec_stages, axis=axis + 1)
rec_stage_lengths = ak.num(tracks.rec_stages, axis=-1)
max_rec_stage_length = ak.max(rec_stage_lengths, axis=axis)
m2 = rec_stage_lengths == max_rec_stage_length
tracks = tracks[m2]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment