From 14fd93018f1d085a9299574c303009c6f96eda9a Mon Sep 17 00:00:00 2001
From: Johannes Schumann <johannes.schumann@fau.de>
Date: Sun, 16 Jan 2022 13:57:54 +0100
Subject: [PATCH] Check int. channel before propagation

---
 km3buu/output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/km3buu/output.py b/km3buu/output.py
index 4d741b1..cbd51c2 100644
--- a/km3buu/output.py
+++ b/km3buu/output.py
@@ -614,7 +614,7 @@ def write_detector_file(gibuu_output,
     bjorkeny = event_data.By
 
     tau_secondaries = None
-    if propagate_tau and abs(nu_type) == 16:
+    if propagate_tau and abs(nu_type) == 16 and ichan == 2:
         from .propagation import propagate_lepton
         tau_secondaries = propagate_lepton(event_data, np.sign(nu_type) * 15)
 
-- 
GitLab