From 4f411de03cda028ccc7c09007aefc019f66235a0 Mon Sep 17 00:00:00 2001
From: Duncan Meacher <duncan.meacher@ligo.org>
Date: Tue, 7 Nov 2017 11:13:42 -0800
Subject: [PATCH] gstlal_etg_pipe: fixed bug with channel lists for command
 lines

---
 gstlal-ugly/bin/gstlal_etg_pipe | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gstlal-ugly/bin/gstlal_etg_pipe b/gstlal-ugly/bin/gstlal_etg_pipe
index 9450335b2b..e5739bc3de 100755
--- a/gstlal-ugly/bin/gstlal_etg_pipe
+++ b/gstlal-ugly/bin/gstlal_etg_pipe
@@ -118,7 +118,7 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, segsdict, ifo, options, channe
 			outstr = outstr + channel + ":" + str(int(samp_rate))
 
 			# Adds channel to current process
-			if cumsum_rates < n_streams:
+			if cumsum_rates < n_streams and ii < len(data_source_info.channel_dict.keys()):
 				outstr = outstr + " --channel-name="
 
 			# Finalise each process once number of streams passes threshold
-- 
GitLab