Skip to content

Commit

Permalink
update expression that checks if stage in tracks.rec_stages
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhenn committed Oct 3, 2024
1 parent 8059aa3 commit 06b276d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/km3pipe/utils/h5extractf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
-h --help Show this screen.
"""

import time
from uuid import uuid4
import numpy as np
Expand Down Expand Up @@ -305,7 +306,7 @@ def _yield_tracks(tracks, fields, without_full_reco=False):
n_columns = max(km3io.definitions.fitparameters.values()) + 1

for name, (stage, func) in track_fmap.items():
if stage is None or stage in tracks.rec_stages:
if (stage is None) or (ak.any(stage == tracks.rec_stages)):
if func is None:
sel_tracks = tracks
else:
Expand Down

0 comments on commit 06b276d

Please sign in to comment.