From e02d497817e61c9d7a93be63b01b2f7110efe094 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 18 Apr 2023 13:27:48 +0200 Subject: [PATCH] Add trigger info in collect_features --- ctapipe/reco/preprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctapipe/reco/preprocessing.py b/ctapipe/reco/preprocessing.py index d5adcf20e89..c815dfb44ba 100644 --- a/ctapipe/reco/preprocessing.py +++ b/ctapipe/reco/preprocessing.py @@ -88,6 +88,8 @@ def collect_features( """ features = {} + features.update(event.trigger.as_dict(recursive=False, flatten=True)) + features.update( event.dl1.tel[tel_id].parameters.as_dict( add_prefix=True,